Support for more than 10 revisions in mediawiki.
Maximum number of revisions in iter_revisions is now 500, the API's limit for normal users. webcontentedit has been updated to use the 'count' option for do_log().
This commit is contained in:
parent
d8cb5230ca
commit
6979604e6f
3 changed files with 9 additions and 7 deletions
|
|
@ -120,5 +120,5 @@ class WebContentEdit(ReplApplication):
|
|||
backend_names = (backend_name,) if backend_name is not None else self.enabled_backends
|
||||
|
||||
_id = _id.encode('utf-8')
|
||||
for backend, revision in self.do('iter_revisions', _id):
|
||||
for backend, revision in self.do('iter_revisions', _id, max_results=self.options.count):
|
||||
self.format(revision)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue