completed functionality and tested
This commit is contained in:
@@ -540,7 +540,7 @@ def add_workout_from_runkeeperdata(user,importid,data):
|
||||
rowdatetime = datetime.datetime.strptime(data['date'],"%Y-%m-%d %H:%M:%S")
|
||||
rowdatetime = thetimezone.localize(rowdatetime).astimezone(utc)
|
||||
starttimeunix = mktime(rowdatetime.utctimetuple())
|
||||
startimeunix += utcoffset*3600
|
||||
starttimeunix += utcoffset*3600
|
||||
|
||||
|
||||
try:
|
||||
@@ -1204,9 +1204,7 @@ def workout_runkeeper_upload_view(request,id=0):
|
||||
return HttpResponseRedirect(url)
|
||||
else:
|
||||
s = response
|
||||
print dir(s)
|
||||
print s.text
|
||||
message = "Something went wrong in workout_runkeeper_upload_view: %s" % s.reason
|
||||
message = "Something went wrong in workout_runkeeper_upload_view: %s - %s" % (s.reason,s.text)
|
||||
|
||||
else:
|
||||
message = "You are not authorized to upload this workout"
|
||||
|
||||
Reference in New Issue
Block a user