fix
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user