fix: Remove unicode encode from CVS row writer (#4294)

Fixes #4292
This commit is contained in:
Lars Eggert 2022-08-02 17:23:53 +02:00 committed by GitHub
parent 1b64231e98
commit beab785903
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -208,7 +208,7 @@ def export_to_csv(request, username=None, acronym=None, group_type=None):
row.append(str(doc.ad) if doc.ad else "")
e = doc.latest_event()
row.append(e.time.strftime("%Y-%m-%d") if e else "")
writer.writerow([v.encode("utf-8") for v in row])
writer.writerow(row)
return response