Skip to content

Commit

Permalink
Fix args to remainder batch.
Browse files Browse the repository at this point in the history
  • Loading branch information
git-steven committed Feb 24, 2024
1 parent b1d24d2 commit c7f7c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csv_batcher/csv_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _split(self):

# write remainder
if len(lines) > 0:
self._write_chunk((count // self.chunk_line_cnt) + 1, lines)
self._write_chunk(header, (count // self.chunk_line_cnt) + 1, lines)
logging.info(f"Split ({self.csv_filename}) into {len(self.chunk_files)}")

def _write_chunk(self, header:str, part:int, lines:Sequence):
Expand Down

0 comments on commit c7f7c83

Please sign in to comment.