Skip to content

Commit

Permalink
Fix delimiter option not considered (taraslayshchuk#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
rc9000 committed Jul 23, 2018
1 parent b119cd9 commit 965ac50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion es2csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def write_to_csv(self):
self.num_results = sum(1 for line in codecs.open(self.tmp_file, mode='r', encoding='utf-8'))
if self.num_results > 0:
output_file = codecs.open(self.opts.output_file, mode='a', encoding='utf-8')
csv_writer = csv.DictWriter(output_file, fieldnames=self.csv_headers)
csv_writer = csv.DictWriter(output_file, fieldnames=self.csv_headers, delimiter=unicode(self.opts.delimiter))
csv_writer.writeheader()
timer = 0
widgets = ['Write to csv ',
Expand Down

0 comments on commit 965ac50

Please sign in to comment.