修正跑道高点缺历史时的回退来源

This commit is contained in:
2569718930@qq.com
2026-06-16 04:18:30 +08:00
parent f9d3fc2d96
commit 14e356c3c9
2 changed files with 49 additions and 1 deletions
+5 -1
View File
@@ -1480,9 +1480,13 @@ def _get_airport_daily_high(city_weather: Dict[str, Any]):
amos = city_weather.get("amos") or {}
has_runway = bool((amos.get("runway_obs") or {}).get("point_temperatures"))
if has_runway:
runway_max = _runway_history_daily_max(city_weather, city_weather.get("city") or "")
city = city_weather.get("city") or ""
runway_max = _runway_history_daily_max(city_weather, city)
if runway_max is not None:
return runway_max, None
current_runway_max = _focused_runway_max(str(city), city_weather)
if current_runway_max is not None:
return round(float(current_runway_max), 1), None
airport = city_weather.get("airport_current") or {}
max_so_far = airport.get("max_so_far")