Skip to content

Commit d7c0a18

Browse files
Pa04rthnorthdpole
authored andcommitted
Solving the linting errors
1 parent 361c574 commit d7c0a18

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

application/tests/spreadsheet_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ def test_prepare_spreadsheet(self) -> None:
116116
# url = self.get_spreadsheet_url()
117117
# alias = "Test Spreadsheet"
118118
# result = read_spreadsheet(url, alias, validate=False, parse_numbered_only=False)
119-
119+
120120
# # Assuming the spreadsheet has a column "ISO Number" with values "7.10" and "8.20"
121121
# expected = [
122122
# {"ISO Number": "7.10", "Name": "Example 1", "Value": 10},
123123
# {"ISO Number": "8.20", "Name": "Example 2", "Value": 20}
124124
# ]
125-
126-
# self.assertEqual(result["Sheet1"], expected)
125+
126+
# self.assertEqual(result["Sheet1"], expected)

application/utils/spreadsheet.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,19 @@ def read_spreadsheet(
5959
" will be processed by convention)" % wsh.title
6060
)
6161
records = wsh.get_all_records(
62-
head=1, numericise_ignore=["ISO Number"] # Added numericise_ignore parameter
62+
head=1,
63+
numericise_ignore=[
64+
"ISO Number"
65+
], # Added numericise_ignore parameter
6366
) # workaround because of https://github.com/burnash/gspread/issues/1007 # this will break if the column names are in any other line
6467
toyaml = yaml.safe_load(yaml.safe_dump(records))
6568
result[wsh.title] = toyaml
6669
elif not parse_numbered_only:
6770
records = wsh.get_all_records(
68-
head=1, numericise_ignore=["ISO Number"] # Added numericise_ignore parameter
71+
head=1,
72+
numericise_ignore=[
73+
"ISO Number"
74+
], # Added numericise_ignore parameter
6975
) # workaround because of https://github.com/burnash/gspread/issues/1007 # this will break if the column names are in any other line
7076
toyaml = yaml.safe_load(yaml.safe_dump(records))
7177
result[wsh.title] = toyaml
@@ -81,6 +87,7 @@ def read_spreadsheet(
8187

8288
return result
8389

90+
8491
class ExportSheet:
8592
processed_ids = []
8693
body = []

0 commit comments

Comments
 (0)