Private
Public Access
1
0

messages for upload

This commit is contained in:
Sander Roosendaal
2017-05-11 09:21:07 +02:00
parent 33e185912e
commit 80ebb91255
7 changed files with 68 additions and 42 deletions

View File

@@ -319,7 +319,7 @@ def getidfromresponse(response):
def workout_sporttracks_upload(user,w):
message = ""
message = "Uploading to SportTracks"
stid = 0
# ready to upload. Hurray
r = w.user
@@ -353,7 +353,7 @@ def workout_sporttracks_upload(user,w):
stid = getidfromresponse(response)
w.uploadedtosporttracks = stid
w.save()
return '',stid
return 'Successfully synced to SportTracks',stid
else:
s = response
message = "Something went wrong in workout_sporttracks_upload_view: %s" % s.reason