feat: 노을 결론을 다음에 오는 것으로 — 해 뜨기 전·밤엔 일출, 그 사이엔 노을. 피드 노을 카드도 같이

This commit is contained in:
minaChoi committed 2026-10-08 17:15:22 +09:00
1 parent 5a5f585bda
commit 5c4f23c01a
7 files changed
+98 -39

No files matched your search

+1
View File
@@ -42,6 +42,7 @@ class PlanSpot(WebPacketProtocol):
class SkyPlanData(WebPacketProtocol):
kind: Literal["sunset", "sunrise"] = Field(description="다음에 오는 것: 해 뜨기 전·밤엔 일출, 그 사이엔 노을")
day: date
when: str
verdict: Literal["go", "maybe", "rest"]
+1
View File
@@ -26,6 +26,7 @@ def _situation(x: SkyScore) -> str | None:
def _plan(p: SkyPlan) -> SkyPlanData:
return SkyPlanData(
kind="sunrise" if p.kind is SkyType.SUNRISE else "sunset",
day=p.day, when=p.when, verdict=p.verdict, headline=p.headline, reason=p.reason, score=p.score, grade_label=p.grade_label,
situation_label=p.situation_label, models_total=p.models_total, models_agree=p.models_agree,
best_at=p.best_at, spot=PlanSpot(name=p.spot.spot.name, distance_km=p.spot.distance_km) if p.spot else None,