fix broken excel files

This commit is contained in:
WorldTeacher
2024-09-10 11:49:16 +02:00
parent c10ecdd4d3
commit 560b0a5298

View File

@@ -58,9 +58,9 @@ class ReportThread(QThread):
# # wruitng the table to a file
if self.format == "tsv":
table = table.get_csv_string()
tsv_table = table.replace(",", "\t")
tsv_table = table.replace(",", "\t")#.replace("Rückgabe", "Rückgabe")
# write the file
with open("report.tsv", "w", encoding="utf-8") as f:
with open("report.tsv", "w") as f:
f.write(tsv_table)
else:
with open("report.txt", "w", encoding="utf-8") as f: