Private
Public Access
1
0

checking headers

This commit is contained in:
Sander Roosendaal
2017-05-04 08:58:18 +02:00
parent 5fdb7fda43
commit a180f1b14a

View File

@@ -1247,7 +1247,7 @@ def workout_tp_upload_view(request,id=0):
res,reason,status_code,headers = tpstuff.uploadactivity(r.tptoken,tcxfile,
name=w.name)
if res == 0:
message = "Upload to TrainingPeaks failed with status code "+str(status_code)+": "+reason+"\n"+headers
message = "Upload to TrainingPeaks failed with status code "+str(status_code)+": "+reason+"\n"+json.dumps(headers)
w.uploadedtotp = -1
w.save()
try: