Filter runway history by observation time

This commit is contained in:
2569718930@qq.com
2026-06-15 20:20:31 +08:00
parent 7443383720
commit 383011f9fe
6 changed files with 43 additions and 9 deletions
+1 -1
View File
@@ -330,7 +330,7 @@ def _overlay_cached_runway_history_from_db(city: str, payload: Dict[str, Any]) -
return payload
try:
rows = legacy_routes._CACHE_DB.get_runway_obs_recent(icao, minutes=36 * 60)
rows = legacy_routes._CACHE_DB.get_runway_obs_recent(icao, minutes=24 * 60)
except Exception as exc:
logger.debug("chart runway DB overlay skipped city={} icao={}: {}", normalized_city, icao, exc)
return payload
+1 -1
View File
@@ -327,7 +327,7 @@ def _append_amsc_runway_history_from_raw_store(
if not callable(lister):
return False
try:
rows = lister("amsc_awos", city, minutes=36 * 60, limit=3000)
rows = lister("amsc_awos", city, minutes=24 * 60, limit=1500)
except Exception as exc:
logger.debug("latest AMSC raw history overlay skipped city={}: {}", city, exc)
return False