From b99be1a1444b0f70b04a395ac0b10978621a6150 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 11 Nov 2022 18:26:15 +0100 Subject: [PATCH 1/2] change delimiter --- ereuse_devicehub/inventory/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ereuse_devicehub/inventory/views.py b/ereuse_devicehub/inventory/views.py index 8c7569eb..93740af5 100644 --- a/ereuse_devicehub/inventory/views.py +++ b/ereuse_devicehub/inventory/views.py @@ -878,10 +878,10 @@ class ExportsView(View): data = StringIO() cw = csv.writer( data, - delimiter=';', + delimiter=',', lineterminator="\n", - quotechar='"', - quoting=csv.QUOTE_ALL, + quotechar='', + quoting=csv.QUOTE_NONE, ) cw.writerow(['Manufacturer', 'Model', 'Serial Number']) From efa9693f167a362f878210b3bdd7708633ea9b3e Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 11 Nov 2022 18:34:41 +0100 Subject: [PATCH 2/2] fixing obada test --- tests/files/export_obada_standard.csv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/files/export_obada_standard.csv b/tests/files/export_obada_standard.csv index d83e4e2c..1e7daf6f 100644 --- a/tests/files/export_obada_standard.csv +++ b/tests/files/export_obada_standard.csv @@ -1,2 +1,2 @@ -"Manufacturer";"Model";"Serial Number" -"asustek computer inc.";"1001pxd";"b8oaas048285" +Manufacturer,Model,Serial Number +asustek computer inc.,1001pxd,b8oaas048285