https://bugzilla.wikimedia.org/show_bug.cgi?id=55160
Web browser: --- Bug ID: 55160 Summary: Page._getVersionHistory returns only a part of a history Product: Pywikibot Version: unspecified Hardware: All OS: All Status: ASSIGNED Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1546/ Reported by: dixond Created on: 2012-11-28 13:00:50 Subject: Page._getVersionHistory returns only a part of a history Assigned to: xqt Original description: There is a bug in Page._getVersionHistory. It doesn't load the whole history it it is large. The problem in here (wikipedia.py): if len(result['query']['pages'].values()[0]['revisions']) < revCount: thisHistoryDone = True
I believe it should be as following: if not getAll and len(result['query']['pages'].values()[0]['revisions']) >= revCount: thisHistoryDone = True
Version.py: Pywikipedia trunk/pywikipedia/ (r10745, 2012/11/20, 13:03:05) Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] config-settings: use_api = True use_api_login = True unicode test: ok