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): def get_issue_num(issues, user):
numOfIssues = 0 numOfIssues = 0
for issue in issues: for issue in issues:
if issue['user']['login'] == user: if issue['assignee']:
if issue['assignee']['login'] == user:
numOfIssues += 1 numOfIssues += 1
return numOfIssues return numOfIssues