Bugs item #3590676, was opened at 2012-11-28 05:00 Message generated for change (Settings changed) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3590676...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None Status: Open Resolution: None
Priority: 5
Private: No Submitted By: DixonD (dixond) Assigned to: Nobody/Anonymous (nobody) Summary: Page._getVersionHistory returns only a part of a history
Initial Comment: 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
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3590676...