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