You've already forked wakapi-readme-stats
Merge remote-tracking branch 'origin/master'
This commit is contained in:
2
main.py
2
main.py
@@ -472,6 +472,8 @@ def get_stats(github):
|
|||||||
f"https://wakatime.com/api/v1/users/current/all_time_since_today?api_key={waka_key}")
|
f"https://wakatime.com/api/v1/users/current/all_time_since_today?api_key={waka_key}")
|
||||||
if request.status_code == 401:
|
if request.status_code == 401:
|
||||||
print("Error With WAKA time API returned " + str(request.status_code) + " Response " + str(request.json()))
|
print("Error With WAKA time API returned " + str(request.status_code) + " Response " + str(request.json()))
|
||||||
|
elif "text" not in request.json()["data"]:
|
||||||
|
print("User stats are calculating. Try again later.")
|
||||||
else:
|
else:
|
||||||
data = request.json()
|
data = request.json()
|
||||||
stats += '![Code Time](http://img.shields.io/badge/' + quote(
|
stats += '![Code Time](http://img.shields.io/badge/' + quote(
|
||||||
|
|||||||
Reference in New Issue
Block a user