From 18d669ccf1d5fe1124477c140767c13b2a164350 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Mon, 2 Sep 2024 12:32:41 +0200 Subject: [PATCH] fix sepator for xls to csv function --- tournaments/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournaments/views.py b/tournaments/views.py index 96bb3b7..2673c37 100644 --- a/tournaments/views.py +++ b/tournaments/views.py @@ -336,7 +336,7 @@ def xls_to_csv(request): data_xls = pd.read_excel(file_name, 'Joueurs', index_col=None) csv_file_name = create_random_filename('players', 'csv') output_path = os.path.join(directory, csv_file_name) - data_xls.to_csv(output_path, encoding='utf-8') + data_xls.to_csv(output_path, sep=';', index=False, encoding='utf-8') # Send the processed file back with default_storage.open(output_path, 'rb') as file: