mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-01 11:12:15 +00:00
Tag new Omicron cases too
This commit is contained in:
parent
df5d74bd64
commit
b8a2562b12
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue