export to excel: apply excel_safe to every value when exporting (#2064)

This commit is contained in:
Richard Schreiber
2021-05-06 15:14:30 +02:00
committed by GitHub
parent 9ab61f3e27
commit 324919881f

View File

@@ -234,8 +234,7 @@ class ListExporter(BaseExporter):
total = line.total
continue
ws.append([
excel_safe(val) if not isinstance(val, KNOWN_TYPES) else val
for val in line
excel_safe(val) for val in line
])
if total:
counter += 1