Merge branch 'master' into pep8
This commit is contained in:
commit
63a14cb590
2 changed files with 24 additions and 7 deletions
|
@ -41,9 +41,8 @@ class Module(bumblebee.engine.Module):
|
|||
if not token:
|
||||
self._count = 0
|
||||
return
|
||||
|
||||
notifications = requests.get("https://api.github.com/notifications?access_token={}"
|
||||
.format(token)).text
|
||||
|
||||
notifications = requests.get("https://api.github.com/notifications", headers={"Authorization":"token {}".format(token)}).text
|
||||
unread = 0
|
||||
for notification in json.loads(notifications):
|
||||
if "unread" in notification and notification["unread"]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue