fix: 노을 커밋에 섞인 자외선 작업 두 줄(uv_level) 빼기

This commit is contained in:
minaChoi committed 2026-10-12 11:22:36 +09:00
1 parent 52b79c6de9
commit 0f614dd82f
1 file changed
+2 -2
+2 -2
View File
@@ -30,7 +30,7 @@ from services.calc.index_calc import rank_score
from services.calc.moon import MoonNight, nearest, night, view_line
from services.calc.sky_score import GRADE_LABEL, sky_title
from services.calc.sun import sun_times
from services.hero_stats import UV_HIGH, HeroInput, hero_stats, uv_label, uv_level
from services.hero_stats import UV_HIGH, HeroInput, hero_stats, uv_label
from services.index_service import IndexBoard, IndexItem, IndexService
from services.now_service import NowService, NowWeather
from services.season_service import SeasonService
@@ -627,7 +627,7 @@ class FeedService:
return None
label = uv_label(top)
at = peak.forecast_at.astimezone(KST)
rows = [Row(label=f"{r.forecast_at.astimezone(KST).hour}시", value=uv_label(float(r.uv_index)), level=uv_level(float(r.uv_index))) for r in c.uv]
rows = [Row(label=f"{r.forecast_at.astimezone(KST).hour}시", value=uv_label(float(r.uv_index))) for r in c.uv]
when = "점심때" if at.hour == 12 else f"{hour_label(at.hour)} 무렵"
todo = "선크림·모자·선글라스 챙기고 그늘로 다녀요" if top >= UV_HIGH else "선크림·모자 챙겨요"
line = f"오늘 자외선 지수 {label}\n{when} 나가면 {todo}"