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: [email protected]
          Reporter: [email protected]
       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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to