From 08a32e43570fc09f69ce3c1716863825d74563cc Mon Sep 17 00:00:00 2001 From: gahusb Date: Fri, 1 May 2026 10:30:39 +0900 Subject: [PATCH] =?UTF-8?q?feat(realestate):=20=EC=8B=A0=ED=98=BC=EB=B6=80?= =?UTF-8?q?=EB=B6=80=20=ED=8A=B9=EA=B3=B5=20=ED=98=BC=EC=9D=B8=20=EA=B8=B0?= =?UTF-8?q?=EA=B0=84=20=EA=B2=80=EC=A6=9D=20=EC=B6=94=EA=B0=80=20(84?= =?UTF-8?q?=EA=B0=9C=EC=9B=94=20=EC=9D=B4=EB=82=B4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit marriage_months 미입력 시 기존대로 통과, 85개월 이상이면 신혼부부 특공 자격 제외. Co-Authored-By: Claude Sonnet 4.6 --- realestate-lab/app/matcher.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/realestate-lab/app/matcher.py b/realestate-lab/app/matcher.py index b1699cb..5a9839e 100644 --- a/realestate-lab/app/matcher.py +++ b/realestate-lab/app/matcher.py @@ -86,8 +86,10 @@ def _check_eligible_types(profile: Dict[str, Any], ann: Dict[str, Any]) -> List[ elif is_homeless: eligible.append("일반2순위") - # 특별공급 — 신혼부부 (소득 160% 이하) - if profile.get("is_newlywed") and is_homeless: + # 특별공급 — 신혼부부 (소득 160% 이하, 혼인 84개월 이내) + marriage_months = profile.get("marriage_months") + newlywed_ok = (marriage_months is None) or (marriage_months <= 84) + if profile.get("is_newlywed") and is_homeless and newlywed_ok: if income_pct is None or income_pct <= 160: eligible.append("특별-신혼부부")