From 6225751df0b3b3acd0c033ab2fb3c1bef386c347 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 4 May 2017 08:38:43 +0200 Subject: [PATCH] bug fix --- rowers/tpstuff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rowers/tpstuff.py b/rowers/tpstuff.py index 43c6c042..44bc2a2c 100644 --- a/rowers/tpstuff.py +++ b/rowers/tpstuff.py @@ -245,9 +245,9 @@ def uploadactivity(access_token,filename,description='', print "" print headers print "" - return 0,"ok",200 + return 0,resp.reason,resp.status_code else: - return resp.json()[0]["Id"],resp.reason,resp.status_code + return resp.json()[0]["Id"],"ok",200 return 0