Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2021-01-28 20:33:57 +01:00
parent 7844639ea0
commit 4d52d1b37c

View File

@@ -3779,6 +3779,12 @@ class RowerHRZonesForm(ModelForm):
hranname = 'AN' hranname = 'AN'
cleaned_data['hranname'] = 'AN' cleaned_data['hranname'] = 'AN'
try:
hrmaxname = cleaned_data['hrmaxname']
except:
hrmaxname = 'Max'
cleaned_data['hrmaxname'] = 'Max'
if rest >= ut2: if rest >= ut2:
e = "{ut2name} should be higher than {restname}".format( e = "{ut2name} should be higher than {restname}".format(