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