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 total = line.total
continue continue
ws.append([ ws.append([
excel_safe(val) if not isinstance(val, KNOWN_TYPES) else val excel_safe(val) for val in line
for val in line
]) ])
if total: if total:
counter += 1 counter += 1