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