Explorar o código

Fixing bug with getTopRepositories method

David Leonard %!s(int64=10) %!d(string=hai) anos
pai
achega
924ba6d8da
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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):
 
 
 
-