add age check

This commit is contained in:
ipu 2025-08-15 10:31:34 +03:00
parent 9d975c94d1
commit 0a2c50d2d3

View file

@ -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: