aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-08-01 17:01:38 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-08-01 17:01:38 +0100
commit9dc8509a6601eb65a9ae6ce785173ad682a9438d (patch)
treef2d33df15ef9b93fbaa4456ff4930c343cd07559
parentc9e481b4548193af2c52865d78c86a2d7d4f1f3e (diff)
now added the column of keys to the master
-rw-r--r--pkg/datamaps/writer.go2
1 files changed, 1 insertions, 1 deletions
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")