You've already forked wakapi-readme-stats
Merge pull request #343 from sworday/patch-1
change GitHub-contributions server
This commit is contained in:
2
main.py
2
main.py
@@ -441,7 +441,7 @@ def get_short_info(github):
|
|||||||
print("Please add new github personal access token with user permission")
|
print("Please add new github personal access token with user permission")
|
||||||
else:
|
else:
|
||||||
disk_usage = humanize.naturalsize(user_info.disk_usage)
|
disk_usage = humanize.naturalsize(user_info.disk_usage)
|
||||||
request = requests.get('https://github-contributions.now.sh/api/v1/' + user_info.login)
|
request = requests.get('https://github-contributions.vercel.app/api/v1/' + user_info.login)
|
||||||
if request.status_code == 200:
|
if request.status_code == 200:
|
||||||
data = request.json()
|
data = request.json()
|
||||||
total = data['years'][0]['total']
|
total = data['years'][0]['total']
|
||||||
|
|||||||
Reference in New Issue
Block a user