https://bugzilla.wikimedia.org/show_bug.cgi?id=71538
Bug ID: 71538 Summary: Pages might not be returned in data at first req.submit() in Query.Generators Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: mpaa.wiki@gmail.com Web browser: --- Mobile Platform: ---
import pywikibot site = pywikibot.getSite() cat = pywikibot.Category(site, 'Speeches') for i in cat.subcategories(total=5): print i
returns empty list even if subcats are present.
api,py gives up at first try if this fails: if self.resultkey in self.data["query"]:
it should try again a query has still data to provide:
{u'query-continue': {u'categorymembers': {u'gcmcontinue': u'page|414444524553532044454c49564552454420415420544845204d41534f4e20434f4c4c4547452c20414e0a45535341595320414e44204144445245535345532f414e20414444524553532044454c49564552454420415420544845204d41534f4e20434f4c4c454745|411259'}}, u'query': {u'userinfo': {u'id': 257091, u'name': u'Mpaa'}}}
https://bugzilla.wikimedia.org/show_bug.cgi?id=71538
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 164258 had a related patch set uploaded by Mpaa: Bug 71538 - Pages might not be returned at first req.submit()
https://gerrit.wikimedia.org/r/164258
https://bugzilla.wikimedia.org/show_bug.cgi?id=71538
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=71538
--- Comment #2 from Mpaa mpaa.wiki@gmail.com --- the example is on en:wikisource
https://bugzilla.wikimedia.org/show_bug.cgi?id=71538
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 164258 merged by jenkins-bot: Bug 71538 - Pages might not be returned at first req.submit()
https://gerrit.wikimedia.org/r/164258
https://bugzilla.wikimedia.org/show_bug.cgi?id=71538
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org