Nullzero has uploaded a new change for review. https://gerrit.wikimedia.org/r/111832
Change subject: Make Recentchanges return all revisions ...................................................................... Make Recentchanges return all revisions Recentchanges() is supposed to return all revisions, but now it returns only pages which the program hasn't detected before. This patch solves the problem. bug: 55152 Change-Id: I0fe918cc21f3912ecb5f7189a8001c3c73d31fd0 --- M wikipedia.py 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/compat refs/changes/32/111832/1 diff --git a/wikipedia.py b/wikipedia.py index 86d4f23..a8a3fc6 100644 --- a/wikipedia.py +++ b/wikipedia.py @@ -8243,8 +8243,8 @@ "The APIs don't return data, the site may be down") for i in rcData: - if i['pageid'] not in seen: - seen.add(i['pageid']) + if i['revid'] not in seen: + seen.add(i['revid']) page = Page(self, i['title'], defaultNamespace=i['ns']) if 'comment' in i: page._comment = i['comment'] -- To view, visit https://gerrit.wikimedia.org/r/111832 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0fe918cc21f3912ecb5f7189a8001c3c73d31fd0 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/compat Gerrit-Branch: master Gerrit-Owner: Nullzero <nullzero.f...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits