Private
Public Access
1
0

ability to change weight for single scullers

This commit is contained in:
Sander Roosendaal
2018-05-08 07:50:40 +02:00
parent dda47d04e5
commit b9492bafa7

View File

@@ -13501,15 +13501,10 @@ def virtualevent_register_view(request,id=0):
cd = form.cleaned_data
teamname = cd['teamname']
boattype = cd['boattype']
if not boattype == '1x':
weightcategory = cd['weightcategory']
age = cd['age']
else:
weightcategory = r.weightcategory
if r.birthdate:
age = calculate_age(r.birthdate)
else:
age = cd['age']
weightcategory = cd['weightcategory']
age = cd['age']
if boattype == '1x' and r.birthdate:
age = calculate_age(r.birthdate)
record = VirtualRaceResult(
userid=r.id,