Tag new Omicron cases too

This commit is contained in:
Daniel Mason 2022-01-16 14:51:22 +13:00
parent df5d74bd64
commit b8a2562b12

View file

@ -99,6 +99,9 @@ func getNewAPILocations() {
if item.PublishedAt.After(previousUpdatedTime) {
// Clone the item to put in our own lil slice
copy := item
if strings.Contains(strings.ToLower(item.PublicAdvice), "omicron") {
copy.EventName = copy.EventName + " (Omicron)"
}
newItems[item.Location.City] = append(newItems[item.Location.City], copy)
// Always keep the latest