jenkins-bot merged this change.
[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.