mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-03 04:02:14 +00:00
Don't output >20 items at once
This commit is contained in:
parent
80e020f1b4
commit
6eb7e26d4d
1 changed files with 5 additions and 0 deletions
|
@ -59,6 +59,11 @@ func parseCsvRow(data string) {
|
||||||
// Append row data
|
// Append row data
|
||||||
updatedLocations.Locations = append(updatedLocations.Locations, newRow)
|
updatedLocations.Locations = append(updatedLocations.Locations, newRow)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(updatedLocations.Locations) > 20 {
|
||||||
|
log.Print("Not displaying >20 locations!")
|
||||||
|
updatedLocations = UpdatedLocations{}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// rowHasChanged - Determine if row has actually changed based on raw data
|
// rowHasChanged - Determine if row has actually changed based on raw data
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue