Private
Public Access
1
0

faster strava sync

This commit is contained in:
Sander Roosendaal
2020-03-01 17:36:06 +01:00
parent 08f644c3fc
commit e559710756
5 changed files with 13 additions and 14 deletions

View File

@@ -507,7 +507,7 @@ def make_private(w,options):
return 1
def do_sync(w,options):
def do_sync(w,options, async=False):
try:
upload_to_strava = options['upload_to_Strava']
except KeyError:
@@ -532,7 +532,7 @@ def do_sync(w,options):
if ('upload_to_Strava' in options and upload_to_strava) or (w.user.strava_auto_export and ispromember(w.user.user)):
try:
message,id = stravastuff.workout_strava_upload(
w.user.user,w
w.user.user,w,async=async
)
except NoTokenError:
id = 0