Merge pull request #178 from chrismullins/fix-github-module
BUG: github module count breaks in python3
This commit is contained in:
commit
4bbc67a6c4
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class Module(bumblebee.engine.Module):
|
||||||
url = "https://api.github.com/notifications"
|
url = "https://api.github.com/notifications"
|
||||||
while True:
|
while True:
|
||||||
notifications = self._requests.get(url)
|
notifications = self._requests.get(url)
|
||||||
self._count += len(filter(lambda notification: notification.get("unread", False), notifications.json()))
|
self._count += len(list(filter(lambda notification: notification['unread'], notifications.json())))
|
||||||
next_link = notifications.links.get('next')
|
next_link = notifications.links.get('next')
|
||||||
if next_link is not None:
|
if next_link is not None:
|
||||||
url = next_link.get('url')
|
url = next_link.get('url')
|
||||||
|
|
Loading…
Reference in a new issue