mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-06-11 01:14:45 +02:00
fix(incident): remove TomTom road fallback to from field
Let road stay None when road_numbers is absent so the renderer uses the from → to segment format instead of clobbering it with the raw from string. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
198827a1b0
commit
b60ea5c5db
1 changed files with 1 additions and 1 deletions
|
|
@ -303,7 +303,7 @@ def _parse_tomtom_incident(envelope: dict, now: int) -> Optional[dict]:
|
|||
"source": "tomtom_incidents",
|
||||
"external_id": external_id,
|
||||
"category_kind": "incident",
|
||||
"road": _tomtom_road_label(d) or (d.get("from") or "road"),
|
||||
"road": _tomtom_road_label(d),
|
||||
"direction": _tomtom_direction_from_description(d.get("description")),
|
||||
"mile_start": None,
|
||||
"mile_end": None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue