瀏覽代碼

Fixing bug with getTopRepositories method

David Leonard 10 年之前
父節點
當前提交
924ba6d8da
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      hackathon_starter/hackathon/scripts/github.py

+ 1 - 2
hackathon_starter/hackathon/scripts/github.py

@@ -102,7 +102,7 @@ def getTopContributedRepositories(repos, clientID, clientSecret):
 	jsonList = []
 	for repo in repos:
 		# print repo
-		req = requests.get('https://api.github.com/repos/DrkSephy/' + repo + '/stats/contributors' + '?' + clientID + clientSecret)
+		req = requests.get('https://api.github.com/repos/DrkSephy/' + repo + '/stats/contributors' + '?' + clientID + '&' + clientSecret)
 		jsonList.append(json.loads(req.content))
 
 	parsedData = []
@@ -177,4 +177,3 @@ def filterStarGazerCount(data):
 
 
 
-