Skip to content
Snippets Groups Projects
Commit 5555b25e authored by Dan Michael O. Heggø's avatar Dan Michael O. Heggø
Browse files

Merge pull request #75 from AdamWill/pagelist-args

fix PageList API arg passing to GeneratorList
parents bbb3b1c2 230c34bb
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,10 @@ This is the development version of mwclient.
Add 'continue' parameter to all queries
[#73](https://github.com/mwclient/mwclient/issues/73).
* [2014-12-18] [@AdamWill](https://github.com/AdamWill):
fix PageList API arg passing to GeneratorList
[059322e](https://github.com/mwclient/mwclient/commit/059322e)
## Changes in version 0.7.1
Mwclient 0.7.1 was released on 23 November 2014.
......
......@@ -166,12 +166,12 @@ class PageList(GeneratorList):
kwargs = {}
if prefix:
kwargs['apprefix'] = prefix
kwargs['gapprefix'] = prefix
if start:
kwargs['apfrom'] = start
kwargs['gapfrom'] = start
GeneratorList.__init__(self, site, 'allpages', 'ap',
apnamespace=text_type(namespace), apfilterredir=redirects, **kwargs)
gapnamespace=text_type(namespace), gapfilterredir=redirects, **kwargs)
def __getitem__(self, name):
return self.get(name, None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment