fixed bug
This commit is contained in:
@@ -267,7 +267,8 @@ class URLTests(TestCase):
|
||||
mocked_getsmallrowdata_db,
|
||||
mock_get,
|
||||
mock_post,
|
||||
mocked_get_video_data):
|
||||
mocked_get_video_data,
|
||||
mocked_sendmail):
|
||||
|
||||
if url not in tested:
|
||||
login = self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
@@ -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