Private
Public Access
1
0

bug fixes - loading nonexisting workout

This commit is contained in:
Sander Roosendaal
2017-02-13 22:32:05 +01:00
parent 4adccd508c
commit 4d7006922e
5 changed files with 195 additions and 48 deletions

View File

@@ -447,8 +447,12 @@ def get_username(access_token):
me_json = response.json()
try:
res = me_json['data']['username']
except KeyError:
res = None
return me_json['data']['username']
return res
# Get user id, having access token
# Handy for checking if the API access is working