Private
Public Access
1
0

completed functionality and tested

This commit is contained in:
Sander Roosendaal
2017-03-24 10:49:54 +01:00
parent 44afa5ef47
commit 89f33ea804
4 changed files with 64 additions and 50 deletions

View File

@@ -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"