diff --git a/bots/markpages.py b/bots/markpages.py index 4e12620..ffef940 100644 --- a/bots/markpages.py +++ b/bots/markpages.py @@ -268,6 +268,10 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat() """ Checks if disc notice which shall be added is already present. """ + + if self.disc_notice in self.current_wikicode: + return True + # Iterate over Templates with same name (if any) to search equal # Link to decide if they are the same for present_notice in self.current_wikicode.ifilter_templates(