bug fix
This commit is contained in:
@@ -1247,7 +1247,7 @@ def workout_tp_upload_view(request,id=0):
|
|||||||
res,reason,status_code = tpstuff.uploadactivity(r.tptoken,tcxfile,
|
res,reason,status_code = tpstuff.uploadactivity(r.tptoken,tcxfile,
|
||||||
name=w.name)
|
name=w.name)
|
||||||
if res == 0:
|
if res == 0:
|
||||||
message = "Upload to TrainingPeaks failed with status code "+status_code+": "+reason
|
message = "Upload to TrainingPeaks failed with status code "+str(status_code)+": "+reason
|
||||||
w.uploadedtotp = -1
|
w.uploadedtotp = -1
|
||||||
w.save()
|
w.save()
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user