From 9dc8509a6601eb65a9ae6ce785173ad682a9438d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sat, 1 Aug 2020 17:01:38 +0100 Subject: now added the column of keys to the master --- pkg/datamaps/writer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/datamaps/writer.go') diff --git a/pkg/datamaps/writer.go b/pkg/datamaps/writer.go index e1cb713..144ae4d 100644 --- a/pkg/datamaps/writer.go +++ b/pkg/datamaps/writer.go @@ -121,7 +121,7 @@ func ExportMaster(opts *Options) error { log.Fatal(err) } dmlKey := datamapKeys[masterRow-1] - if sl := r.WriteSlice(values[dmlKey], -1); sl == -1 { + if sl := r.WriteSlice(append([]string{dmlKey}, values[dmlKey]...), -1); sl == -1 { log.Printf("not a slice type") } log.Printf("writing slice to row\n") -- cgit v1.2.3