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("특별-신혼부부")