Fix event code translation in NTSB feed, close #125

This commit is contained in:
~lucidiot 2023-09-07 16:50:23 +02:00
parent 9600a5c2e4
commit a7bb81ef2d
Signed by: lucidiot
GPG Key ID: 3358C1CA6906FB8D
1 changed files with 2 additions and 2 deletions

View File

@ -635,8 +635,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