Merge branch 'develop' into feature/metrics
This commit is contained in:
@@ -821,7 +821,10 @@ def get_userid(access_token):
|
||||
return 0
|
||||
|
||||
|
||||
try:
|
||||
me_json = response.json()
|
||||
except JSONDecodeError:
|
||||
return 0
|
||||
try:
|
||||
res = me_json['data']['id']
|
||||
except KeyError:
|
||||
|
||||
@@ -506,6 +506,7 @@ def do_sync(w,options):
|
||||
try:
|
||||
if options['stravaid'] != 0:
|
||||
w.uploadedtostrava = options['stravaid']
|
||||
options['upload_to_Strava'] = False
|
||||
w.save()
|
||||
except KeyError:
|
||||
pass
|
||||
@@ -524,7 +525,6 @@ def do_sync(w,options):
|
||||
if ('upload_to_Strava' in options and not options['upload_to_Strava']):
|
||||
pass
|
||||
else:
|
||||
if options['stravaid'] != 0:
|
||||
try:
|
||||
message,id = stravastuff.workout_strava_upload(
|
||||
w.user.user,w
|
||||
|
||||
Reference in New Issue
Block a user