From 0e38255a9db5bd140a90f7c67d65e01bda6167fe Mon Sep 17 00:00:00 2001 From: Mono Mono Date: Sun, 2 Mar 2025 23:15:52 -0500 Subject: [PATCH] refactor(View): public function. --- tienda_ilusion/don_confiao/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tienda_ilusion/don_confiao/views.py b/tienda_ilusion/don_confiao/views.py index 22dcf3f..a22f88e 100644 --- a/tienda_ilusion/don_confiao/views.py +++ b/tienda_ilusion/don_confiao/views.py @@ -163,7 +163,7 @@ def handle_import_customers_file(csv_file): } ) -def _sales_to_tryton_csv(sales): +def sales_to_tryton_csv(sales): tryton_sales_header = [ "Tercero", "Dirección de facturación", @@ -225,7 +225,7 @@ def exportar_ventas_para_tryton(request): response = HttpResponse(content_type='text/csv') response['Content-Disposition'] = "attachment; filename=sales.csv" sales = Sale.objects.all() - csv_data = _sales_to_tryton_csv(sales) + csv_data = sales_to_tryton_csv(sales) writer = csv.writer(response) for row in csv_data: writer.writerow(row)