mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 10:56:48 +00:00
Quote all non numeric fields in csv files
This commit is contained in:
parent
9dfb4b882a
commit
7506a13fe8
@ -301,7 +301,7 @@ def download_for_get_all(call: APICall, company, request: DownloadForGetAllReque
|
|||||||
future = pool.submit(get_fn, page, min(page_size, items_left))
|
future = pool.submit(get_fn, page, min(page_size, items_left))
|
||||||
|
|
||||||
with StringIO() as fp:
|
with StringIO() as fp:
|
||||||
writer = csv.writer(fp)
|
writer = csv.writer(fp, quoting=csv.QUOTE_NONNUMERIC)
|
||||||
if page == 1:
|
if page == 1:
|
||||||
fp.write("\ufeff") # utf-8 signature
|
fp.write("\ufeff") # utf-8 signature
|
||||||
writer.writerow(field_mappings)
|
writer.writerow(field_mappings)
|
||||||
|
Loading…
Reference in New Issue
Block a user