hotfix fit functionality, strava timeout, team invite
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user