Compare commits

...

2 Commits

1 changed files with 4 additions and 2 deletions

View File

@ -616,6 +616,8 @@ def to_ul: if length > 0 then "<ul><li>\(map(values)|join("</li><li>"))</li></ul
"Flag state": .flagState,
"Traffic unit name": .trafficUnitName,
"Traffic unit type": .trafficUnitType,
"Serial number": .SerialNumber,
"Damage level": .DamageLevel,
"Carrying hazardous materials": .carryingHazmat,
"Has released hazardous materials": .releasedHazmat,
"Units": ([
@ -635,8 +637,8 @@ def to_ul: if length > 0 then "<ul><li>\(map(values)|join("</li><li>"))</li></ul
(.cm_events // [])[] | (
(
# Try to use the known event codes to map to more specific names
$event_codes[.cm_tier2Num]
// $event_codes[.cm_tier1Num]
(try $event_codes[.cm_tier2Num] catch null)
// (try $event_codes[.cm_tier1Num] catch null)
# Fallback to the sometimes provided generic event group name
// .cicttEventSOEGroup
# Fallback to an error message