add age check
This commit is contained in:
parent
9d975c94d1
commit
0a2c50d2d3
1 changed files with 4 additions and 0 deletions
|
|
@ -250,6 +250,10 @@ class EstimationService:
|
||||||
applicant_tier = tier
|
applicant_tier = tier
|
||||||
break
|
break
|
||||||
|
|
||||||
|
if applicant_age >= 65:
|
||||||
|
is_dtq = True
|
||||||
|
reason = "Age is over 65"
|
||||||
|
|
||||||
if (applicant.heightFt, applicant.heightIn) in HEIGHT_WEIGHT_TABLE:
|
if (applicant.heightFt, applicant.heightIn) in HEIGHT_WEIGHT_TABLE:
|
||||||
weight_min, weight_max = HEIGHT_WEIGHT_TABLE[(applicant.heightFt, applicant.heightIn)]
|
weight_min, weight_max = HEIGHT_WEIGHT_TABLE[(applicant.heightFt, applicant.heightIn)]
|
||||||
if applicant.weight < weight_min:
|
if applicant.weight < weight_min:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue