Skip to content

Commit 3310bde

Browse files
conorbranaganAlejandro Gómez
authored andcommitted
Fix some issues resources
1 parent 28b0668 commit 3310bde

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pygithub3/resources/issues.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
class Issue(Resource):
88

99
_dates = ('created_at', 'updated_at')
10-
_maps = {'assignee': User}
10+
_maps = {'assignee': User, 'user': User}
1111

1212
def __str__(self):
1313
return '<Issue (%s)>' % getattr(self, 'number', '')
1414

1515

1616
class Comment(Resource):
1717

18-
_dates = ('created_at', 'update_at')
18+
_dates = ('created_at', 'updated_at')
1919
_maps = {'user': User}
2020

2121
def __str__(self):
@@ -25,7 +25,7 @@ def __str__(self):
2525
class Event(Resource):
2626

2727
_dates = ('created_at', )
28-
_maps = {'actor': User}
28+
_maps = {'actor': User, 'issue': Issue}
2929

3030
def __str__(self):
3131
return '<Event (%s)>' % (getattr(self, 'commit_id', ''))

0 commit comments

Comments
 (0)