From 5512ebf133f4fcff659b1c1ab32741d708ca4812 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Sun, 10 May 2026 19:10:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20AMOS=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=EF=BC=9A=E7=A7=BB=E5=87=BA=20includ?= =?UTF-8?q?e=5Fnearby=20=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:_attach_korean_amos_data 在 include_nearby 块内 面板模式(depth=panel)时 include_nearby=False → AMOS 数据从不获取 → detail.amos 始终为空 → 跑道面板不显示 修复:AMOS 调用移到 include_nearby 之外 AMOS 是主观测源,不是 nearby 站网数据 无论 depth 模式都应获取 --- src/data_collection/weather_sources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data_collection/weather_sources.py b/src/data_collection/weather_sources.py index 51a90a64..c412435e 100644 --- a/src/data_collection/weather_sources.py +++ b/src/data_collection/weather_sources.py @@ -1011,10 +1011,10 @@ class WeatherDataCollector(OpenMeteoCacheMixin, SettlementSourceMixin, MetarSour include_mgm=include_mgm, include_nearby=include_nearby, ) + self._attach_korean_amos_data(results, city_lower, use_fahrenheit) if include_nearby: self._attach_china_official_nearby(results, city_lower, use_fahrenheit) self._attach_japan_official_nearby(results, city_lower, use_fahrenheit) - self._attach_korean_amos_data(results, city_lower, use_fahrenheit) self._attach_russia_official_nearby(results, city_lower, use_fahrenheit) if city_lower == "warsaw": self._attach_warsaw_official_nearby(results, use_fahrenheit) @@ -1053,10 +1053,10 @@ class WeatherDataCollector(OpenMeteoCacheMixin, SettlementSourceMixin, MetarSour include_mgm=include_mgm, include_nearby=include_nearby, ) + self._attach_korean_amos_data(results, city_lower, use_fahrenheit) if include_nearby: self._attach_china_official_nearby(results, city_lower, use_fahrenheit) self._attach_japan_official_nearby(results, city_lower, use_fahrenheit) - self._attach_korean_amos_data(results, city_lower, use_fahrenheit) self._attach_russia_official_nearby(results, city_lower, use_fahrenheit) if city_lower == "warsaw": self._attach_warsaw_official_nearby(results, use_fahrenheit)