From 2b6b18ec20431fe58fea65dc8f3c2e2b8b2cbcc4 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Mon, 18 May 2026 22:30:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20city=5Fruntime.py=20?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E5=B7=B2=E5=88=A0=E9=99=A4=E7=9A=84=20probab?= =?UTF-8?q?ility=5Fsnapshot=5Farchive=20=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/services/city_runtime.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/services/city_runtime.py b/web/services/city_runtime.py index 8b1f001f..2f29c6af 100644 --- a/web/services/city_runtime.py +++ b/web/services/city_runtime.py @@ -9,7 +9,6 @@ from fastapi import APIRouter, BackgroundTasks, HTTPException from loguru import logger from src.analysis.deb_algorithm import load_history -from src.analysis.probability_snapshot_archive import load_snapshot_rows_for_day from src.database.db_manager import DBManager from src.database.runtime_state import ( DailyRecordRepository, @@ -431,7 +430,7 @@ def _build_city_history_payload(city: str, include_records: bool = False) -> dic act = rec.get("actual_high") deb = rec.get("deb_prediction") mu = rec.get("mu") - snapshots = load_snapshot_rows_for_day(city, day) + snapshots = _load_snapshot_rows_for_day(city, day) peak_ref = _build_peak_minus_12h_reference( actual_high=act, snapshots=snapshots, @@ -800,5 +799,9 @@ def _build_recent_deb_performance_index( } return index + +def _load_snapshot_rows_for_day(_city: str, _day: str) -> list: + return [] + __all__ = [name for name in globals() if not (name.startswith('__') and name.endswith('__'))]