Align Taipei and Shenzhen settlement sources with Wunderground

This commit is contained in:
2569718930@qq.com
2026-04-02 21:46:41 +08:00
parent f64d3aec83
commit 603546f2f9
4 changed files with 66 additions and 24 deletions
+3 -1
View File
@@ -601,7 +601,9 @@ class WeatherDataCollector(OpenMeteoCacheMixin, SettlementSourceMixin, MetarSour
if settlement_current:
results["settlement_current"] = settlement_current
if city_lower in ["hong_kong", "hong kong", "香港", "hk"]:
city_meta = self.CITY_REGISTRY.get(str(city_lower or "").strip().lower()) or {}
settlement_source = str(city_meta.get("settlement_source") or "").strip().lower()
if settlement_source == "hko" or city_lower in ["hong_kong", "hong kong", "香港", "hk"]:
hko_forecast = self.fetch_hko_forecast()
if hko_forecast:
results["hko_forecast"] = hko_forecast