Browse Source

Fix #72: Markpages terminates with error

Filtering templates with wikicode as match param does not work anymore,
explicitly cast to string
Jonathan Golder 1 month ago
parent
commit
1b82de1eab
2 changed files with 4 additions and 1 deletions
  1. 3
    0
      README.md
  2. 1
    1
      bots/markpages.py

+ 3
- 0
README.md View File

@@ -19,6 +19,9 @@ Those can be installed using pip and the _requirements.txt_ file provided with t
19 19
 
20 20
 Versions
21 21
 --------
22
+* v1.2.1
23
+  - Fix [#72](https://git.golderweb.de/wiki/jogobot-red/issues/72)
24
+
22 25
 * v1.2
23 26
   - Create a list of redfams/articles missing reddisc notice
24 27
 

+ 1
- 1
bots/markpages.py View File

@@ -293,7 +293,7 @@ class MarkPagesBot( CurrentPageBot ):  # sets 'current_page' on each treat()
293 293
         # Iterate over Templates with same name (if any) to search equal
294 294
         # Link to decide if they are the same
295 295
         for present_notice in self.current_wikicode.ifilter_templates(
296
-                matches=self.disc_notice.name ):
296
+                matches=str(self.disc_notice.name) ):
297 297
 
298 298
             # Get reddisc page.title of notice to add
299 299
             add_notice_link_tile = self.disc_notice.get(