This commit is contained in:
Sagi Dayan 2015-07-02 15:26:37 +03:00
parent c6f4bb714a
commit cfdcc038db

View file

@ -77,7 +77,8 @@ def make_micro(stats, issues):
def get_issue_num(issues, user):
numOfIssues = 0
for issue in issues:
if issue['user']['login'] == user:
if issue['assignee']:
if issue['assignee']['login'] == user:
numOfIssues += 1
return numOfIssues