mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-06-10 17:04:45 +02:00
fix(incident): correct mile_marker key from _enrichment to _enriched
The enrichment pipeline writes to d._enriched, not d._enrichment. Fix both _parse_state_511_incident and _parse_itd_511_incident. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ff887b500c
commit
15c414f255
1 changed files with 2 additions and 2 deletions
|
|
@ -385,7 +385,7 @@ def _parse_state_511_incident(envelope: dict, category_raw: str, now: int) -> Op
|
|||
"cause": d.get("cause"),
|
||||
"description": d.get("description"),
|
||||
"comment": d.get("comment"),
|
||||
"mile_marker": (d.get("_enrichment") or {}).get("mile_marker", {}).get("value"),
|
||||
"mile_marker": (d.get("_enriched") or {}).get("mile_marker", {}).get("value"),
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -462,7 +462,7 @@ def _parse_itd_511_incident(envelope: dict, category_raw: str, now: int) -> Opti
|
|||
"cause": d.get("cause"),
|
||||
"description": d.get("description"),
|
||||
"comment": d.get("comment"),
|
||||
"mile_marker": (d.get("_enrichment") or {}).get("mile_marker", {}).get("value"),
|
||||
"mile_marker": (d.get("_enriched") or {}).get("mile_marker", {}).get("value"),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue