Update Notification.py

This commit is contained in:
AKFish
2013-08-21 16:58:25 +08:00
parent ba6800ada4
commit 6cb6e8d232
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -707,7 +707,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
None,
None
)
return github.Notification.Notification(self._requester, data, completed=True)
return github.Notification.Notification(self._requester, headers, data, completed=True)
def get_notifications(self, all=github.GithubObject.NotSet, participating=github.GithubObject.NotSet):
"""
-3
View File
@@ -33,9 +33,6 @@ class Notification(github.GithubObject.CompletableGithubObject):
"""
This class represents Notifications. The reference can be found here http://developer.github.com/v3/activity/notifications/
"""
def __init__(self, requester, attributes, completed):
# Adapte for __init__ change, remove later
github.GithubObject.CompletableGithubObject.__init__(self, requester, {}, attributes, completed)
@property
def id(self):