feat: implement Telegram push notification utility with state management and market filtering

This commit is contained in:
2569718930@qq.com
2026-05-17 15:06:27 +08:00
parent c60baaa1e8
commit 04e0369255
2 changed files with 44 additions and 2 deletions
+2 -2
View File
@@ -1052,7 +1052,7 @@ def _run_high_freq_airport_cycle(
deb_pred: Optional[float] = None
try:
from web.app import _analyze
city_weather = _analyze(city)
city_weather = _analyze(city, force_refresh=True)
deb_raw = (city_weather.get("deb") or {}).get("prediction")
if deb_raw is not None:
deb_pred = float(deb_raw)
@@ -1112,7 +1112,7 @@ def _run_high_freq_airport_cycle(
and now_ts - last_city_ts > 540):
time.sleep(4)
try:
city_weather = _analyze(city)
city_weather = _analyze(city, force_refresh=True)
deb_raw2 = (city_weather.get("deb") or {}).get("prediction")
if deb_raw2 is not None:
deb_pred = float(deb_raw2)