Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2021-04-30 09:00:14 +02:00
parent 9746b9925f
commit 7763969704
2 changed files with 12 additions and 2 deletions

View File

@@ -541,6 +541,7 @@ def do_sync(w,options, quick=False):
except KeyError:
pass
try:
if options['nkid'] != 0 and options['nkid'] != '': # pragma: no cover
w.uploadedtonk = options['nkid']
@@ -620,8 +621,14 @@ def do_sync(w,options, quick=False):
f.write(str(e))
do_tp_export = w.user.trainingpeaks_auto_export
try:
upload_to_tp = options['upload_to_SportTracks'] or do_tp_export
do_tp_export = upload_to_tp
except KeyError:
upload_to_tp = False
if ('upload_to_SportTracks' in options and options['upload_to_SportTracks']) or (w.user.sporttracks_auto_export):
if do_tp_export:
try:
message,id = sporttracksstuff.workout_sporttracks_upload(
w.user.user,w,asynchron=True,