mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-03 04:02:14 +00:00
Patch
This commit is contained in:
parent
dde434015f
commit
803fc11664
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ func parseCsvRow(data string) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(c) < 6 {
|
if len(c) < 5 {
|
||||||
log.Printf("Invalid line. Skipping")
|
log.Printf("Invalid line. Skipping")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -251,7 +251,7 @@ func parseRawRowData(data string) ([]string, time.Time, time.Time, error) {
|
||||||
|
|
||||||
c := make([]string, 0)
|
c := make([]string, 0)
|
||||||
c = append(c, fields...)
|
c = append(c, fields...)
|
||||||
if len(c) < 6 {
|
if len(c) < 5 {
|
||||||
// Add helper in case someone somehow does something wrong
|
// Add helper in case someone somehow does something wrong
|
||||||
return output, time.Now(), time.Now(), err
|
return output, time.Now(), time.Now(), err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue