jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/524673 )
Change subject: [bugfix] Fix the comparison in archivebot
......................................................................
[bugfix] Fix the comparison in archivebot
Bug: T228587
Change-Id: I30da3c19521d24391924e3cb1c1d7ee20abb8d47
---
M scripts/archivebot.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/archivebot.py b/scripts/archivebot.py
index 97c0bb9..c0381f8 100755
--- a/scripts/archivebot.py
+++ b/scripts/archivebot.py
@@ -572,7 +572,7 @@
pywikibot.output('Looking for: {{%s}} in %s' % (self.tpl.title(),
self.page))
for tpl in self.page.raw_extracted_templates:
- if tpl[0] == self.tpl.title():
+ if tpl[0] == self.tpl.title(with_ns=False):
for item, value in tpl[1].items():
self.set_attr(item.strip(), value.strip())
break
--
To view, visit https://gerrit.wikimedia.org/r/524673
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I30da3c19521d24391924e3cb1c1d7ee20abb8d47
Gerrit-Change-Number: 524673
Gerrit-PatchSet: 3
Gerrit-Owner: Dvorapa <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot (75)
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits