Private
Public Access
1
0

Merge branch 'release/v11.28'

This commit is contained in:
Sander Roosendaal
2020-03-10 18:02:49 +01:00

View File

@@ -535,7 +535,7 @@ def do_sync(w,options, quick=False):
if ('upload_to_Strava' in options and upload_to_strava) or (w.user.strava_auto_export and ispromember(w.user.user)): if ('upload_to_Strava' in options and upload_to_strava) or (w.user.strava_auto_export and ispromember(w.user.user)):
try: try:
message,id = stravastuff.workout_strava_upload( message,id = stravastuff.workout_strava_upload(
w.user.user,w,quick=quick w.user.user,w,quick=quick,asynchron=True,
) )
except NoTokenError: except NoTokenError:
id = 0 id = 0
@@ -545,7 +545,7 @@ def do_sync(w,options, quick=False):
if ('upload_to_SportTracks' in options and options['upload_to_SportTracks']) or (w.user.sporttracks_auto_export and ispromember(w.user.user)): if ('upload_to_SportTracks' in options and options['upload_to_SportTracks']) or (w.user.sporttracks_auto_export and ispromember(w.user.user)):
try: try:
message,id = sporttracksstuff.workout_sporttracks_upload( message,id = sporttracksstuff.workout_sporttracks_upload(
w.user.user,w w.user.user,w,asynchron=True,
) )
except NoTokenError: except NoTokenError:
message = "Please connect to SportTracks first" message = "Please connect to SportTracks first"