Private
Public Access
1
0

messages for upload

This commit is contained in:
Sander Roosendaal
2017-05-11 09:21:07 +02:00
parent 33e185912e
commit 80ebb91255
7 changed files with 68 additions and 42 deletions

View File

@@ -275,7 +275,7 @@ def handle_stravaexport(f2,workoutname,stravatoken,description=''):
message = 'Workout successfully synchronized to Strava'
except:
res = 0
message = 'Strava upload timed out'
# description doesn't work yet. Have to wait for stravalib to update
@@ -289,7 +289,7 @@ def handle_stravaexport(f2,workoutname,stravatoken,description=''):
def workout_strava_upload(user,w):
message = ""
message = "Uploading to Strava"
stravaid=-1
r = Rower.objects.get(user=user)
res = -1
@@ -322,7 +322,7 @@ def workout_strava_upload(user,w):
os.remove(tcxfile)
except WindowsError:
pass
message = ''
message = mes
stravaid = res
return message,stravaid
else: