From: Karl O. Pinc Date: Sat, 23 Jan 2021 23:31:50 +0000 (-0600) Subject: Add a "trim" key to the bulk upload map X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=7c766ee39d11514efea154b8ca34e604e7805187;p=pgwui_server Add a "trim" key to the bulk upload map --- diff --git a/examples/etc/pgwui.ini b/examples/etc/pgwui.ini index f4e0f4d..e4d900e 100644 --- a/examples/etc/pgwui.ini +++ b/examples/etc/pgwui.ini @@ -295,11 +295,16 @@ pgwui.dry_run = False # - file_map: # file: baz.csv # relation: meta.baz_table +# trim: false # # The files within each directory are uploaded in the order in which # they are listed in the map file. The directories in the zip file are # processed in alphabetical order. # +# The "trim:" key in the file_map map controls whether or not whitespace +# is removed from data values. "trim:" takes a boolean value. It +# defaults to true. It overrides other choices in the GUI interface. +# # Top level tags, other than the `map_list` tag, are ignored. # # It is recommended to enclose file names which contain spaces, or begin diff --git a/examples/misc/development.ini b/examples/misc/development.ini index dc0748b..b122e05 100644 --- a/examples/misc/development.ini +++ b/examples/misc/development.ini @@ -302,11 +302,17 @@ pgwui.validate_hmac = False # - file_map: # file: baz.csv # relation: meta.baz_table +# trim: false +# # # The files within each directory are uploaded in the order in which # they are listed in the map file. The directories in the zip file are # processed in alphabetical order. # +# The "trim:" key in the file_map map controls whether or not whitespace +# is removed from data values. "trim:" takes a boolean value. It +# defaults to true. It overrides other choices in the GUI interface. +# # Top level tags, other than the `map_list` tag, are ignored. # # It is recommended to enclose file names which contain spaces, or begin