mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 02:46:53 +00:00
Write UTF-8 BOM into csv download file
This commit is contained in:
parent
00552da1b0
commit
6885d07462
@ -301,6 +301,7 @@ def download_for_get_all(call: APICall, company, request: DownloadForGetAllReque
|
||||
with StringIO() as fp:
|
||||
writer = csv.writer(fp)
|
||||
if page == 1:
|
||||
fp.write("\ufeff") # utf-8 signature
|
||||
writer.writerow(field_mappings)
|
||||
writer.writerows(get_projected_fields(r) for r in result)
|
||||
yield fp.getvalue()
|
||||
|
Loading…
Reference in New Issue
Block a user