From e328ff483334794bfd1b6a42a2e1e8e3e2814eb5 Mon Sep 17 00:00:00 2001 From: s-m-b Date: Sun, 9 Nov 2014 04:36:38 +0300 Subject: Typo fix of parameter name 'data' it is now 'iq' Code was broken during refactoring --- sleekxmpp/plugins/google/gmail/notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sleekxmpp/plugins/google') diff --git a/sleekxmpp/plugins/google/gmail/notifications.py b/sleekxmpp/plugins/google/gmail/notifications.py index 509a95fd..e65b2ca7 100644 --- a/sleekxmpp/plugins/google/gmail/notifications.py +++ b/sleekxmpp/plugins/google/gmail/notifications.py @@ -74,8 +74,8 @@ class Gmail(BasePlugin): return resp def _update_last_results(self, iq, callback=None): - self._last_result_time = data['gmail_messages']['result_time'] - threads = data['gmail_messages']['threads'] + self._last_result_time = iq['gmail_messages']['result_time'] + threads = iq['gmail_messages']['threads'] if threads: self._last_result_tid = threads[0]['tid'] if callback: -- cgit v1.2.3