From cfdcc038db74864c9654473ecf1a49a30fe4ff96 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Thu, 2 Jul 2015 15:26:37 +0300 Subject: [PATCH] Fixed #113 --- SE_API/GitHub_API_Connector.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SE_API/GitHub_API_Connector.py b/SE_API/GitHub_API_Connector.py index ddba971..052f3fd 100644 --- a/SE_API/GitHub_API_Connector.py +++ b/SE_API/GitHub_API_Connector.py @@ -77,8 +77,9 @@ def make_micro(stats, issues): def get_issue_num(issues, user): numOfIssues = 0 for issue in issues: - if issue['user']['login'] == user: - numOfIssues += 1 + if issue['assignee']: + if issue['assignee']['login'] == user: + numOfIssues += 1 return numOfIssues def get_github_data(repo_url, project_id):