Private
Public Access
1
0

fixed bug

This commit is contained in:
Sander Roosendaal
2021-01-16 10:34:16 +01:00
parent a1bf54ee59
commit 1a3cd35669
2 changed files with 4 additions and 3 deletions

View File

@@ -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')

View File

@@ -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"