From 1b82de1eabf19567786c56b52269eba4f45bdbbd Mon Sep 17 00:00:00 2001 From: Jonathan Golder Date: Sat, 8 Jun 2019 13:38:25 +0200 Subject: [PATCH] Fix #72: Markpages terminates with error Filtering templates with wikicode as match param does not work anymore, explicitly cast to string --- README.md | 3 +++ bots/markpages.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9fd6a85..3e6058f 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,9 @@ Those can be installed using pip and the _requirements.txt_ file provided with t Versions -------- +* v1.2.1 + - Fix [#72](https://git.golderweb.de/wiki/jogobot-red/issues/72) + * v1.2 - Create a list of redfams/articles missing reddisc notice diff --git a/bots/markpages.py b/bots/markpages.py index ca99406..292663d 100644 --- a/bots/markpages.py +++ b/bots/markpages.py @@ -293,7 +293,7 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat() # 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( - matches=self.disc_notice.name ): + matches=str(self.disc_notice.name) ): # Get reddisc page.title of notice to add add_notice_link_tile = self.disc_notice.get(