Merge branch 'release/v13.01'
This commit is contained in:
@@ -1379,16 +1379,28 @@ def default_class(r,w,race):
|
|||||||
|
|
||||||
if standards.count()==0:
|
if standards.count()==0:
|
||||||
# omit weight
|
# omit weight
|
||||||
standards = CourseStandard.objects.filter(agemin__lt=age,agemax__gt=age,
|
standards = CourseStandard.objects.filter(
|
||||||
boatclass=boatclass,
|
agemin__lt=age,agemax__gt=age,
|
||||||
adaptiveclass=adaptiveclass,
|
boatclass=boatclass,
|
||||||
boattype=boattype,
|
adaptiveclass=adaptiveclass,
|
||||||
).order_by("agemax","-agemin","boattype","sex")
|
boattype=boattype,
|
||||||
|
).order_by(
|
||||||
|
"agemax","-agemin","boattype","sex","weightcategory",
|
||||||
|
"referencespeed"
|
||||||
|
)
|
||||||
if standards.count()==0:
|
if standards.count()==0:
|
||||||
standards = CourseStandard.objects.filter(agemin__lt=age,agemax__gt=age,
|
standards = CourseStandard.objects.filter(
|
||||||
boattype=boattype).order_by("agemax","-agemin","boattype","sex")
|
agemin__lt=age,agemax__gt=age,
|
||||||
|
boattype=boattype
|
||||||
|
).order_by(
|
||||||
|
"agemax","-agemin","boattype","sex",
|
||||||
|
"weightcategory","referencespeed")
|
||||||
if standards.count()==0:
|
if standards.count()==0:
|
||||||
standards = CourseStandard.objects.filter(agemin__lt=age,agemax__gt=age).order_by("agemax","-agemin","boattype","sex")
|
standards = CourseStandard.objects.filter(
|
||||||
|
agemin__lt=age,agemax__gt=age
|
||||||
|
).order_by(
|
||||||
|
"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