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
+1 -1
View File
@@ -335,7 +335,7 @@ def build_city_query_report(
sc_current = {}
city_meta = CITY_REGISTRY.get(city_name.lower(), {})
settlement_source, settlement_source_label = _resolve_settlement_source(city_meta)
use_settlement_current = settlement_source in {"hko", "cwa", "noaa"} and bool(sc_current)
use_settlement_current = settlement_source in {"hko", "cwa", "noaa", "wunderground"} and bool(sc_current)
fallback_utc_offset = int(city_meta.get("tz_offset", 0))
nws_periods = ((weather_data.get("nws") or {}).get("forecast_periods") or [])
if nws_periods: