forgot to save
This commit is contained in:
@@ -524,13 +524,14 @@ def do_sync(w,options):
|
|||||||
if ('upload_to_Strava' in options and not options['upload_to_Strava']):
|
if ('upload_to_Strava' in options and not options['upload_to_Strava']):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
try:
|
if options['stravaid'] != 0:
|
||||||
message,id = stravastuff.workout_strava_upload(
|
try:
|
||||||
|
message,id = stravastuff.workout_strava_upload(
|
||||||
w.user.user,w
|
w.user.user,w
|
||||||
)
|
)
|
||||||
except NoTokenError:
|
except NoTokenError:
|
||||||
id = 0
|
id = 0
|
||||||
message = "Please connect to Strava first"
|
message = "Please connect to Strava first"
|
||||||
|
|
||||||
|
|
||||||
if ('upload_to_SportTracks' in options and options['upload_to_SportTracks']) or (w.user.sporttracks_auto_export and isprorower(w.user)):
|
if ('upload_to_SportTracks' in options and options['upload_to_SportTracks']) or (w.user.sporttracks_auto_export and isprorower(w.user)):
|
||||||
|
|||||||
Reference in New Issue
Block a user