diff options
author | 2012-04-13 16:31:31 -0400 | |
---|---|---|
committer | 2012-05-27 19:54:28 +0200 | |
commit | 3310bde985aea5467ce93abcf9f0fc5008942f7c (patch) | |
tree | c401a7d518fd3bd369e94416d3eaf9ee05eadf88 /pygithub3/resources/issues.py | |
parent | Use github.issues for the issues service (diff) | |
download | python-github3-3310bde985aea5467ce93abcf9f0fc5008942f7c.tar.xz python-github3-3310bde985aea5467ce93abcf9f0fc5008942f7c.zip |
Fix some issues resources
Diffstat (limited to 'pygithub3/resources/issues.py')
-rw-r--r-- | pygithub3/resources/issues.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygithub3/resources/issues.py b/pygithub3/resources/issues.py index ce5b304..e864e79 100644 --- a/pygithub3/resources/issues.py +++ b/pygithub3/resources/issues.py @@ -7,7 +7,7 @@ from .users import User class Issue(Resource): _dates = ('created_at', 'updated_at') - _maps = {'assignee': User} + _maps = {'assignee': User, 'user': User} def __str__(self): return '<Issue (%s)>' % getattr(self, 'number', '') @@ -15,7 +15,7 @@ class Issue(Resource): class Comment(Resource): - _dates = ('created_at', 'update_at') + _dates = ('created_at', 'updated_at') _maps = {'user': User} def __str__(self): @@ -25,7 +25,7 @@ class Comment(Resource): class Event(Resource): _dates = ('created_at', ) - _maps = {'actor': User} + _maps = {'actor': User, 'issue': Issue} def __str__(self): return '<Event (%s)>' % (getattr(self, 'commit_id', ''))
\ No newline at end of file |