Skip to content
Browse files

extract issue before comments

  • Loading branch information...
1 parent de07e79 commit fed95cafa5390c45a02801b45ee5a33a1b03c5f6 @mikofski committed Mar 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 issue.py
View
4 issue.py
@@ -23,8 +23,8 @@ def comments(self):
"""Gets Comments for a given Issue"""
comments = []
json_raw = self._account.request(self.api_url)
-
- raw_comments = json_raw['comments']
+ raw_issue = json_raw['issue']
+ raw_comments = raw_issue['comments']
for raw_comment in raw_comments:
c = comment.Comment(raw_comment)
comments.append(c)

0 comments on commit fed95ca

Please sign in to comment.
Something went wrong with that request. Please try again.