jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/680408 )
Change subject: [bugfix] fix stripping author_page_name in is_wikisource_author_page()
......................................................................
[bugfix] fix stripping author_page_name in is_wikisource_author_page()
Bug: T280328
Change-Id: I356153f45199fb9d5957aedde0e987c93f443e6a
---
M scripts/patrol.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/patrol.py b/scripts/patrol.py
index f33f956..fe15dfc 100755
--- a/scripts/patrol.py
+++ b/scripts/patrol.py
@@ -272,7 +272,7 @@
author_ns_prefix = self.site.namespace(author_ns) + ':'
author_page_name = removeprefix(title, author_ns_prefix)
- if title != author_ns_prefix:
+ if title != author_page_name:
verbose_output('Found author ' + author_page_name)
return True
return False
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/680408
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I356153f45199fb9d5957aedde0e987c93f443e6a
Gerrit-Change-Number: 680408
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki(a)aol.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged