messages for upload
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user