Skip to content

Commit 9da39fe

Browse files
Pa04rthnorthdpole
authored andcommitted
Changes to treat all columns as strings
1 parent aa60eaa commit 9da39fe

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

application/utils/spreadsheet.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,13 @@ def read_spreadsheet(
5959
" will be processed by convention)" % wsh.title
6060
)
6161
records = wsh.get_all_records(
62-
head=1,
63-
numericise_ignore=[
64-
"ISO Number"
65-
], # Added numericise_ignore parameter
62+
head=1, numericise_ignore="all" # Added numericise_ignore parameter
6663
) # workaround because of https://github.com/burnash/gspread/issues/1007 # this will break if the column names are in any other line
6764
toyaml = yaml.safe_load(yaml.safe_dump(records))
6865
result[wsh.title] = toyaml
6966
elif not parse_numbered_only:
7067
records = wsh.get_all_records(
71-
head=1,
72-
numericise_ignore=[
73-
"ISO Number"
74-
], # Added numericise_ignore parameter
68+
head=1, numericise_ignore="all" # Added numericise_ignore parameter
7569
) # workaround because of https://github.com/burnash/gspread/issues/1007 # this will break if the column names are in any other line
7670
toyaml = yaml.safe_load(yaml.safe_dump(records))
7771
result[wsh.title] = toyaml

0 commit comments

Comments
 (0)