Align Taipei settlement to NOAA RCTP across web and extension
This commit is contained in:
@@ -74,7 +74,7 @@ def _analyze(city: str, force_refresh: bool = False) -> Dict[str, Any]:
|
||||
mc = metar.get("current", {}) if metar else {}
|
||||
mg_cur = mgm.get("current", {}) if mgm else {}
|
||||
sc_cur = settlement_current.get("current", {}) if settlement_current else {}
|
||||
use_settlement_current = settlement_source in {"hko", "cwa"} and bool(sc_cur)
|
||||
use_settlement_current = settlement_source in {"hko", "cwa", "noaa"} and bool(sc_cur)
|
||||
primary_current = sc_cur if use_settlement_current else mc
|
||||
cur_temp = _sf(primary_current.get("temp"))
|
||||
if cur_temp is None:
|
||||
|
||||
@@ -74,6 +74,7 @@ SETTLEMENT_SOURCE_LABELS: Dict[str, str] = {
|
||||
"metar": "METAR",
|
||||
"hko": "HKO",
|
||||
"cwa": "CWA",
|
||||
"noaa": "NOAA",
|
||||
"mgm": "MGM",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user