jenkins-bot has submitted this change and it was merged.

Change subject: Add revid to Notification object
......................................................................


Add revid to Notification object

Since most edit-related notifications include revid attributes,
we should include the revids in the Notification objects as we're
building them (if they exist).

Change-Id: Ifdb98e7c79729a1c2f7a5c4c4366e28071a48239
---
M pywikibot/echo.py
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/echo.py b/pywikibot/echo.py
index f9fa001..6d6587b 100644
--- a/pywikibot/echo.py
+++ b/pywikibot/echo.py
@@ -43,6 +43,7 @@
             notif.read = False
 
         notif.content = data.get('*', None)
+        notif.revid = data.get('revid', None)
 
         return notif
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifdb98e7c79729a1c2f7a5c4c4366e28071a48239
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: APerson <danielhg...@gmail.com>
Gerrit-Reviewer: John Vandenberg <jay...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to