fix: 매시 정각~14분에 지금 날씨가 예보로 돌아가던 것 — 새 실황은 15분부터 쓰고, 그 전엔 시각은 그대로 두고 앞 시각 관측을 이어서

This commit is contained in:
skkim committed 2026-11-24 10:44:08 +09:00
1 parent 3baa543313
commit fb483c6b50
11 files changed
+62 -40

No files matched your search

+1 -1
View File
@@ -409,7 +409,7 @@ class FeedService:
)
hourly = hourly or []
if (observed := await observed_now(region, now)) is not None: # 히어로의 지금은 관측값
overlay = with_observed({h.forecast_at: h for h in hourly}, observed)
overlay = with_observed({h.forecast_at: h for h in hourly}, observed, now)
hourly = [overlay[h.forecast_at] for h in hourly]
_, posts = await DB_SESSION_MNG.execute_lambda(lambda s: self.crud.day(s, day, [NATIONAL_SCOPE, sido_of(region.code)]))
posts = _by_position(posts or [])