Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-12-03 19:23:51 +01:00
parent 54cbc60ccc
commit 84090a9ed1

View File

@@ -4882,6 +4882,10 @@ def workout_upload_api(request):
workouttype = form.cleaned_data['workouttype']
try:
rpe = form.cleaned_data['rpe']
try:
rpe = int(rpe)
except ValueError:
rpe = 0
except KeyError:
rpe = -1
if rowerform.is_valid():
@@ -5062,6 +5066,10 @@ def workout_upload_view(request,
try:
rpe = docformoptions['rpe']
try:
rpe = int(rpe)
except ValueError:
rpe = 0
if not rpe:
rpe = -1
except KeyError:
@@ -5146,6 +5154,10 @@ def workout_upload_view(request,
boattype = form.cleaned_data['boattype']
try:
rpe = form.cleaned_data['rpe']
try:
rpe = int(rpe)
except ValueError:
rpe = 0
except KeyError:
rpe = -1