APerson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/295567

Change subject: Fix notifications query parse
......................................................................

Fix notifications query parse

In meta=notifications, query.notifications.list is now an actual list, so we 
shouldn't call values() on it.

Change-Id: I30c9fbd7cc6002106430d1c26a1e3d2d7e8caa65
---
M pywikibot/site.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/67/295567/1

diff --git a/pywikibot/site.py b/pywikibot/site.py
index ce7f628..345d1e4 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -2283,7 +2283,7 @@
             params['not' + key] = kwargs[key]
 
         data = self._simple_request(**params).submit()
-        for notif in data['query']['notifications']['list'].values():
+        for notif in data['query']['notifications']['list']:
             yield Notification.fromJSON(self, notif)
 
     @need_extension('Echo')

-- 
To view, visit https://gerrit.wikimedia.org/r/295567
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I30c9fbd7cc6002106430d1c26a1e3d2d7e8caa65
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: APerson <danielhg...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to