Skip to content

Commit

Permalink
severe
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronClaydon committed Nov 10, 2024
1 parent 3bca2d3 commit b309256
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/dataimporter/formats/siri_sx/siri_sx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b309256

Please sign in to comment.