diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index d1fa2f47094300abd6fbf9570a4f4330620c92ad..14854fc15ed74c0edc39565837b09f5fd8e6fbd2 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -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. diff --git a/mwclient/listing.py b/mwclient/listing.py index 404efefddc2656de367b5cda0c06747d355b386a..0e68e94e770ee9cfba63e2790a8476bcc7f69c33 100644 --- a/mwclient/listing.py +++ b/mwclient/listing.py @@ -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)