Private
Public Access
1
0

added headers

This commit is contained in:
Sander Roosendaal
2017-05-04 08:54:29 +02:00
parent ad559a668a
commit d4f93cbd40
2 changed files with 5 additions and 5 deletions

View File

@@ -1244,10 +1244,10 @@ def workout_tp_upload_view(request,id=0):
if (checkworkoutuser(request.user,w)):
tcxfile = tpstuff.createtpworkoutdata(w)
if tcxfile:
res,reason,status_code = tpstuff.uploadactivity(r.tptoken,tcxfile,
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
message = "Upload to TrainingPeaks failed with status code "+str(status_code)+": "+reason+"\n"+headers
w.uploadedtotp = -1
w.save()
try: