Xqt has submitted this change and it was merged.
Change subject: archivebot.py: use canonical title when finding archive pages ......................................................................
archivebot.py: use canonical title when finding archive pages
When analyzing the config template, the value for the argument 'archive' should be canonicalized to pass the 'security' check, even when the namespace is localized on the wiki.
Change-Id: Ib698d1937ef1907165fdf840e709d8adda87d1f6 --- M archivebot.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved
diff --git a/archivebot.py b/archivebot.py index f5dd147..db0bc09 100644 --- a/archivebot.py +++ b/archivebot.py @@ -515,7 +515,7 @@ 'monthnameshort': int2month_short(TStuple[1]), 'week': int(time.strftime('%W', TStuple)), } - archive = archive % vars + archive = pywikibot.Page(Site, archive % vars).title() if self.feedArchive(archive, t, maxArchSize, vars): archCounter += 1 self.set('counter', str(archCounter))
pywikibot-commits@lists.wikimedia.org