Skip to content

Commit

Permalink
fix: fix DAQJobStoreCSV adding blank lines to files
Browse files Browse the repository at this point in the history
  • Loading branch information
furkan-bilgin committed Oct 13, 2024
1 parent b93fe8e commit 4afd16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daq/store/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _open_csv_file(self, file_path: str) -> tuple[CSVFile, bool]:
Path(file_path).touch()

# Open file
file = CSVFile(open(file_path, "a"), datetime.now(), deque())
file = CSVFile(open(file_path, "a", newline=""), datetime.now(), deque())
self._open_csv_files[file_path] = file
else:
file_exists = True
Expand Down

0 comments on commit 4afd16d

Please sign in to comment.