fixed bug
This commit is contained in:
@@ -583,11 +583,11 @@ def do_sync(w,options, quick=False):
|
||||
message,id = sporttracksstuff.workout_sporttracks_upload(
|
||||
w.user.user,w,asynchron=True,
|
||||
)
|
||||
with open('st_export.log') as logfile:
|
||||
with open('st_export.log','a') as logfile:
|
||||
logfile.write(str(timezone.now())+': ')
|
||||
logfile.write('Workout uploaded '+w.id+'\n')
|
||||
except NoTokenError:
|
||||
with open('st_export.log') as logfile:
|
||||
with open('st_export.log','a') as logfile:
|
||||
logfile.write(str(timezone.now())+': ')
|
||||
logfile.write(str(w.user)+' NoTokenError\n')
|
||||
message = "Please connect to SportTracks first"
|
||||
|
||||
Reference in New Issue
Block a user