Private
Public Access
1
0

hotfix fit functionality, strava timeout, team invite

This commit is contained in:
Sander Roosendaal
2017-02-19 09:29:00 +01:00
parent d4daa8c924
commit 35e853aea1
4 changed files with 13 additions and 5 deletions

View File

@@ -803,11 +803,11 @@ def workout_strava_upload_view(request,id=0):
tcxfile = stravastuff.createstravaworkoutdata(w)
if tcxfile:
with open(tcxfile,'rb') as f:
res = stravastuff.handle_stravaexport(f,w.name,
res,mes = stravastuff.handle_stravaexport(f,w.name,
r.stravatoken,
description=w.notes)
if res==0:
message = "Strava Upload error: %s" % e
message = mes
w.uploadedtostrava = -1
w.save()
os.remove(tcxfile)
@@ -823,7 +823,7 @@ def workout_strava_upload_view(request,id=0):
w.save()
os.remove(tcxfile)
url = "/rowers/workout/"+str(w.id)+"/edit"
successmessage = 'Workout sent to Strava.'
successmessage = mes
except:
with open("media/stravaerrors.log","a") as errorlog:
errorstring = str(sys.exc_info()[0])