Filter runway history by observation time
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user