mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-06-11 01:14:45 +02:00
fix(normalizer): accept wildfire IncidentTypeCategory in WFIGS parser
WFIGS API returns both "WF" and "wildfire" as IncidentTypeCategory values. The previous check only accepted "WF", silently dropping wildfire-typed incidents. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
94118f7b6d
commit
3b12be2242
1 changed files with 1 additions and 1 deletions
|
|
@ -676,7 +676,7 @@ def _parse_wfigs_incidents(inner_data: dict, geo: dict) -> dict:
|
|||
irwin_id = inner_data.get("IrwinID") or inner_data.get("irwin_id")
|
||||
name = inner_data.get("IncidentName")
|
||||
itype = inner_data.get("IncidentTypeCategory")
|
||||
if itype is not None and itype != "WF":
|
||||
if itype is not None and itype not in ("WF", "wildfire"):
|
||||
return None
|
||||
lat = inner_data.get("latitude")
|
||||
lon = inner_data.get("longitude")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue