https://bugzilla.wikimedia.org/show_bug.cgi?id=64188
Bug ID: 64188 Summary: getVersionHistory does not follow total parameter 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: info@gno.de Web browser: --- Mobile Platform: ---
When a version history is already loaded, decreasing the total parameter does not care. It already returns the old amount of values.
import pwb import pywikibot as py s = py.Site() p = py.Page(s, 'user:xqt/Test') x = p.getVersionHistory(total=5) len(x)
5
x = p.getVersionHistory(total=2)
len(x)
5
The same for getVersionHistoryTable and fullVersionHistory method
https://bugzilla.wikimedia.org/show_bug.cgi?id=64188
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|Pywikipedia-bugs@lists.wiki |info@gno.de |media.org |
pywikipedia-bugs@lists.wikimedia.org