From 0a2c50d2d30d5ab7b41b2b494760b2eac71b2152 Mon Sep 17 00:00:00 2001 From: ipu Date: Fri, 15 Aug 2025 10:31:34 +0300 Subject: [PATCH] add age check --- src/services/estimation_service_v2.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/services/estimation_service_v2.py b/src/services/estimation_service_v2.py index 622999d..72f51db 100644 --- a/src/services/estimation_service_v2.py +++ b/src/services/estimation_service_v2.py @@ -250,6 +250,10 @@ class EstimationService: applicant_tier = tier break + if applicant_age >= 65: + is_dtq = True + reason = "Age is over 65" + if (applicant.heightFt, applicant.heightIn) in HEIGHT_WEIGHT_TABLE: weight_min, weight_max = HEIGHT_WEIGHT_TABLE[(applicant.heightFt, applicant.heightIn)] if applicant.weight < weight_min: