Bulk ignore empty CSV columns
This commit is contained in:
parent
66c9b40ead
commit
0659b8993d
1 changed files with 3 additions and 0 deletions
|
|
@ -178,6 +178,9 @@ func parseFile(ctx context.Context, txn bob.Tx, file models.FileuploadFile) ([]*
|
|||
}
|
||||
for i, col := range row {
|
||||
hdr := headers[i]
|
||||
if col == "" {
|
||||
continue
|
||||
}
|
||||
switch hdr {
|
||||
case headerAddressCity:
|
||||
setter.AddressCity = omit.From(col)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue