Update landing and weather observation policies

This commit is contained in:
2569718930@qq.com
2026-05-29 20:46:35 +08:00
parent 2f039abb2c
commit 5228d2b3fd
8 changed files with 469 additions and 279 deletions
+4 -1
View File
@@ -1212,7 +1212,10 @@ def build_country_network_snapshot(city: str, raw: Dict[str, Any]) -> Dict[str,
"stale_row_count": stale_count,
"unknown_timing_count": unknown_count,
}
airport_primary_today_obs = ((raw.get("metar") or {}).get("today_obs") or [])
if provider.provider_code == "turkey_mgm":
airport_primary_today_obs = raw.get("mgm_today_obs") or []
else:
airport_primary_today_obs = ((raw.get("metar") or {}).get("today_obs") or [])
if airport_primary.get("source_code") == "cowin_obs":
live_points = raw.get("cowin_today_obs") or []
if live_points: