From 3310bde985aea5467ce93abcf9f0fc5008942f7c Mon Sep 17 00:00:00 2001 From: Conor Branagan Date: Fri, 13 Apr 2012 16:31:31 -0400 Subject: Fix some issues resources --- pygithub3/resources/issues.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pygithub3/resources/issues.py') 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 '' % 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 '' % (getattr(self, 'commit_id', '')) \ No newline at end of file -- cgit v1.2.3-59-g8ed1b