diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-07-28 06:07:57 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-07-28 06:07:57 +0100 |
commit | 02f3beac25065a5614b5bb548b1635ff051193ba (patch) | |
tree | ae75e6eb697fa8cc18c00b8732e95a897424def8 /pkg/datamaps/reader.go | |
parent | 76e347271d4ce0e611389839253e3ac5cc50822e (diff) |
better importing to database from populated sheet
Diffstat (limited to 'pkg/datamaps/reader.go')
-rw-r--r-- | pkg/datamaps/reader.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/datamaps/reader.go b/pkg/datamaps/reader.go index 4f5e1a0..4490d23 100644 --- a/pkg/datamaps/reader.go +++ b/pkg/datamaps/reader.go @@ -202,13 +202,13 @@ func ExtractDBDatamap(name string, file string, db *sql.DB) (extractedData, erro outer := make(extractedData, len(names)) var inner map[string]xlsx.Cell - seen := make(map[string]bool) + seen := make(map[string]bool) // using this as a set to distinguish sheet names for _, i := range ddata { sheet := i.Sheet if !seen[sheet] { seen[sheet] = true - inner = make(map[string]xlsx.Cell) + inner = make(map[string]xlsx.Cell) // we create a new inner when we get a new sheet } cellref := i.Cellref |