From bc795edf4ff146d204aa08786572e27d4323866d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 5 Aug 2020 16:57:27 +0100 Subject: added numfmt field to return_data table --- pkg/datamaps/writer.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkg/datamaps/writer.go') diff --git a/pkg/datamaps/writer.go b/pkg/datamaps/writer.go index 612fb74..a3c3698 100644 --- a/pkg/datamaps/writer.go +++ b/pkg/datamaps/writer.go @@ -89,8 +89,8 @@ func CreateMaster(opts *Options) error { return err } for masterData.Next() { - var key, filename, value string - if err := masterData.Scan(&key, &value, &filename); err != nil { + var key, filename, value, numFmt string + if err := masterData.Scan(&key, &value, &filename, &numFmt); err != nil { return err } values, err = appendValueMap(key, value, values) @@ -116,6 +116,7 @@ func CreateMaster(opts *Options) error { continue } dmlKey := datamapKeys[masterRow-1] + // TODO - we need to format the cells here too, e.g. dates if sl := r.WriteSlice(append([]string{dmlKey}, values[dmlKey]...), -1); sl == -1 { log.Printf("not a slice type") -- cgit v1.2.3