From a180f1b14ad8bdf26c3412ba90ea10f2d1f538a5 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 4 May 2017 08:58:18 +0200 Subject: [PATCH] checking headers --- rowers/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rowers/views.py b/rowers/views.py index b1fa230c..1238f13a 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -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: