passes checks in python3
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from __future__ import unicode_literals, absolute_import
|
||||
# All the functionality needed to connect to Runkeeper
|
||||
from rowers.imports import *
|
||||
|
||||
@@ -149,12 +150,6 @@ def uploadactivity(access_token,filename,description='',
|
||||
headers=headers)
|
||||
|
||||
if resp.status_code != 200:
|
||||
if settings.DEBUG:
|
||||
print resp.status_code
|
||||
print resp.reason
|
||||
print ""
|
||||
print headers
|
||||
print ""
|
||||
return 0,resp.reason,resp.status_code,headers
|
||||
else:
|
||||
return resp.json()[0]["Id"],"ok",200,""
|
||||
|
||||
Reference in New Issue
Block a user