further improvements
This commit is contained in:
@@ -4473,8 +4473,16 @@ def workout_upload_api(request):
|
|||||||
except NoTokenError:
|
except NoTokenError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
if upload_to_strava:
|
||||||
|
try:
|
||||||
|
message,id = stravastuff.workout_strava_upload(r.user,w)
|
||||||
|
except NoTokenError:
|
||||||
|
pass
|
||||||
|
|
||||||
# add other export options
|
# add other export options
|
||||||
|
|
||||||
|
# sporttracks, runkeeper, underarmour, trainingpeaks
|
||||||
|
|
||||||
else: # form invalid
|
else: # form invalid
|
||||||
message = form.errors
|
message = form.errors
|
||||||
return JsonResponse(status=400,data=message)
|
return JsonResponse(status=400,data=message)
|
||||||
|
|||||||
Reference in New Issue
Block a user