|
|
|
@ -336,7 +336,7 @@ def xls_to_csv(request): |
|
|
|
data_xls = pd.read_excel(file_name, 'Joueurs', index_col=None) |
|
|
|
data_xls = pd.read_excel(file_name, 'Joueurs', index_col=None) |
|
|
|
csv_file_name = create_random_filename('players', 'csv') |
|
|
|
csv_file_name = create_random_filename('players', 'csv') |
|
|
|
output_path = os.path.join(directory, csv_file_name) |
|
|
|
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 |
|
|
|
# Send the processed file back |
|
|
|
with default_storage.open(output_path, 'rb') as file: |
|
|
|
with default_storage.open(output_path, 'rb') as file: |
|
|
|
|