Skip to content

Commit

Permalink
fix: Apply null character filter on configuration sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jun 26, 2024
1 parent 3728f8b commit 0d50f23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.24.3]

### Fixed

- Ignore null characters in the input CSV file when reading configuration from the header rows
https://github.com/OpenDataServices/flatten-tool/pull/446

## [0.24.2] - 2024-06-12

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion flattentool/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ def get_sheet_configuration(self, sheet_name):
with open(
os.path.join(self.input_name, sheet_name + ".csv"), encoding=self.encoding
) as main_sheet_file:
r = csvreader(main_sheet_file)
r = csvreader(NullCharacterFilter(main_sheet_file))
heading_row = next(r)
if len(heading_row) > 0 and heading_row[0] == "#":
return heading_row[1:]
Expand Down

0 comments on commit 0d50f23

Please sign in to comment.