Quote all non numeric fields in csv files

This commit is contained in:
clearml 2024-12-05 22:23:22 +02:00
parent 9dfb4b882a
commit 7506a13fe8

View File

@ -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)