fix: 히어로 상태 한 줄 자외선을 저녁 구간(일몰 2시간 전~)에도 보이게, 밤 구간에만 뺀다

This commit is contained in:
minaChoi committed 2026-10-12 16:24:58 +09:00
1 parent 0b8eb84b55
commit 72301e9f10
4 files changed
+8 -5

No files matched your search

+1 -1
View File
@@ -138,7 +138,7 @@ def _hero_input(
ahead = [x for x in today.slots if x.row and x.at > now] if today else []
later = next((x.at for x in ahead if x.row.rain_type != RainType.NONE.value or x.row.rain_prob >= _HERO_RAIN_PROB), None)
return HeroInput(
now=now, night=slot in ("evening", "night"), rain_at=rainy[0].at if rainy else None,
now=now, night=slot in ("evening", "night"), after_dark=slot == "night", rain_at=rainy[0].at if rainy else None,
rain_later_at=later, today_known=bool(ahead),
air=AirGrade(now_w.air.grade) if now_w and now_w.air and now_w.air.grade is not None else None, uv=uv,
temp_min=min(temps, default=None), temp_max=max(temps, default=None),