filter by ref speed
This commit is contained in:
@@ -1385,19 +1385,22 @@ def default_class(r,w,race):
|
|||||||
adaptiveclass=adaptiveclass,
|
adaptiveclass=adaptiveclass,
|
||||||
boattype=boattype,
|
boattype=boattype,
|
||||||
).order_by(
|
).order_by(
|
||||||
"agemax","-agemin","boattype","sex","weightcategory"
|
"agemax","-agemin","boattype","sex","weightcategory",
|
||||||
|
"referencespeed"
|
||||||
)
|
)
|
||||||
if standards.count()==0:
|
if standards.count()==0:
|
||||||
standards = CourseStandard.objects.filter(
|
standards = CourseStandard.objects.filter(
|
||||||
agemin__lt=age,agemax__gt=age,
|
agemin__lt=age,agemax__gt=age,
|
||||||
boattype=boattype
|
boattype=boattype
|
||||||
).order_by(
|
).order_by(
|
||||||
"agemax","-agemin","boattype","sex")
|
"agemax","-agemin","boattype","sex",
|
||||||
|
"weightcategory","referencespeed")
|
||||||
if standards.count()==0:
|
if standards.count()==0:
|
||||||
standards = CourseStandard.objects.filter(
|
standards = CourseStandard.objects.filter(
|
||||||
agemin__lt=age,agemax__gt=age
|
agemin__lt=age,agemax__gt=age
|
||||||
).order_by(
|
).order_by(
|
||||||
"agemax","-agemin","boattype","sex")
|
"agemax","-agemin","boattype","sex",
|
||||||
|
"weightcategory","referencespeed")
|
||||||
|
|
||||||
if standards.count()==0:
|
if standards.count()==0:
|
||||||
# boolean, boattype, boatclass, adaptiveclass, weightclass, sex, coursestandard,
|
# boolean, boattype, boatclass, adaptiveclass, weightclass, sex, coursestandard,
|
||||||
|
|||||||
Reference in New Issue
Block a user