feat(realestate): 신혼부부 특공 혼인 기간 검증 추가 (84개월 이내)

marriage_months 미입력 시 기존대로 통과, 85개월 이상이면 신혼부부 특공 자격 제외.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-01 10:30:39 +09:00
parent f6de95afb6
commit 08a32e4357

View File

@@ -86,8 +86,10 @@ def _check_eligible_types(profile: Dict[str, Any], ann: Dict[str, Any]) -> List[
elif is_homeless: elif is_homeless:
eligible.append("일반2순위") eligible.append("일반2순위")
# 특별공급 — 신혼부부 (소득 160% 이하) # 특별공급 — 신혼부부 (소득 160% 이하, 혼인 84개월 이내)
if profile.get("is_newlywed") and is_homeless: 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: if income_pct is None or income_pct <= 160:
eligible.append("특별-신혼부부") eligible.append("특별-신혼부부")