Skip to content

Commit

Permalink
Merge pull request #36 from jdfoote/patch-1
Browse files Browse the repository at this point in the history
Making query compatible with MW 1.26+
  • Loading branch information
halfak committed Aug 5, 2015
2 parents 8f01cec + 5c352f4 commit 846c36e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mw/api/collections/revisions.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ def _query(self, revids=None, titles=None, pageids=None, properties=None,

params = {
'action': "query",
'prop': "revisions"
'prop': "revisions",
'rawcontinue': ''
}

params['revids'] = self._items(revids, type=int)
Expand All @@ -179,7 +180,7 @@ def _query(self, revids=None, titles=None, pageids=None, properties=None,
params['rvparse'] = none_or(parse, bool)
params['rvsection'] = none_or(section, int)
params['rvtoken'] = none_or(token, str)
params['rvcontinue'] = none_or(rvcontinue, int)
params['rvcontinue'] = none_or(rvcontinue, str)
params['rvdiffto'] = self._check_diffto(diffto)
params['rvdifftotext'] = none_or(difftotext, str)
params['rvcontentformat'] = none_or(contentformat, str)
Expand Down

0 comments on commit 846c36e

Please # to comment.