From b309256da095dc5258afc6228b564208deb759de Mon Sep 17 00:00:00 2001 From: Aaron Claydon Date: Sun, 10 Nov 2024 23:53:49 +0000 Subject: [PATCH] severe --- pkg/dataimporter/formats/siri_sx/siri_sx.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/dataimporter/formats/siri_sx/siri_sx.go b/pkg/dataimporter/formats/siri_sx/siri_sx.go index bad1fe6..fd47698 100644 --- a/pkg/dataimporter/formats/siri_sx/siri_sx.go +++ b/pkg/dataimporter/formats/siri_sx/siri_sx.go @@ -92,6 +92,9 @@ func SubmitToProcessQueue(queue rmq.Queue, situationElement *SituationElement, d var alertType ctdf.ServiceAlertType alertType = ctdf.ServiceAlertTypeInformation // TODO debug + if len(situationElement.Consequence) > 0 && situationElement.Consequence[0].Severity == "severe" { + alertType = ctdf.ServiceAlertTypeWarning + } var identifyingInformation []map[string]string for _, consequence := range situationElement.Consequence {