Merge pull request #670 from shoxxdj/master

bugfix : cant export csv
main
mpgn 2022-11-08 15:37:23 +01:00 committed by GitHub
commit 6c565b7a1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ class DatabaseNavigator(cmd.Cmd):
Writes a CSV file with the provided parameters.
"""
with open(os.path.expanduser(filename), 'w') as export_file:
csvFile = csv.writer(export_file,delimiter=";", quoting=csv.QUOTE_ALL, lineterminator='\n')
csvFile = csv.writer(export_file,delimiter=";", quoting=csv.QUOTE_ALL, lineterminator='\n',escapechar="\\")
csvFile.writerow(headers)
for entry in entries:
csvFile.writerow(entry)