jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[bugfix] endprefix parameter not working in Category.articles()

The endprefix parameter should be used to set the value of
gcmendsortkeyprefix, rather than cmendsortkeyprefix.

Bug: T247201
Change-Id: Ieab2fa159d73e1e13656c9bc15470b4d5ba5ed55
---
M pywikibot/site.py
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pywikibot/site.py b/pywikibot/site.py
index 575b1e4..24a1d77 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -4032,7 +4032,7 @@
if self.mw_version < '1.18':
raise NotImplementedError(
'categorymembers: "endprefix" requires MW 1.18+')
- cmargs['cmendsortkeyprefix'] = endprefix
+ cmargs['gcmendsortkeyprefix'] = endprefix
elif endprefix:
raise ValueError('categorymembers: '
"invalid combination of 'sortby' and 'endprefix'")

To view, visit change 578049. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ieab2fa159d73e1e13656c9bc15470b4d5ba5ed55
Gerrit-Change-Number: 578049
Gerrit-PatchSet: 3
Gerrit-Owner: William Avery <willm.avery@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)
Gerrit-CC: Dvorapa <dvorapa@seznam.cz>
Gerrit-CC: Welcome, new contributor! <ssethi@wikimedia.org>