Page MenuHomePhabricator

endprefix parameter of Category.articles() not working in pywikibot
Closed, ResolvedPublic


Running the following code against enwiki:

import pywikibot

site = pywikibot.Site()
cat = pywikibot.Category(site, 'Category:Redirects from scientific names')
pagelist = cat.articles(startprefix='Ber', endprefix='Bf', total=100)
for p in pagelist:

A warning is output and the endprefix parameter has no effect:

WARNING: API warning (main): Unrecognized parameter: cmendsortkeyprefix.

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

Event Timeline

Change 578049 had a related patch set uploaded (by William Avery; owner: William Avery):
[pywikibot/core@master] endprefix parameter not working in Category.articles() of pywikibot

Xqt triaged this task as Medium priority.

Change 578049 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] endprefix parameter not working in Category.articles()