mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-01 11:12:15 +00:00
Add skip on load too
This commit is contained in:
parent
2e61500e73
commit
02d088b33b
1 changed files with 5 additions and 0 deletions
|
@ -172,6 +172,11 @@ func loadRowsIntoCache(filePath string) {
|
|||
c := make([]string, 0)
|
||||
c = append(c, row...)
|
||||
|
||||
if len(c) < 6 {
|
||||
log.Printf("Skipping invalid row")
|
||||
continue
|
||||
}
|
||||
|
||||
st, et, err := parseRowTimes(c[4], c[5])
|
||||
if err != nil {
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue