jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/578049 )
Change subject: [bugfix] endprefix parameter not working in Category.articles() ......................................................................
[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(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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'")
pywikibot-commits@lists.wikimedia.org