From f2f3fd066050e94acb87234da9024699128fdb40 Mon Sep 17 00:00:00 2001 From: Arthur ZHU Date: Thu, 7 Jul 2022 15:30:50 +0200 Subject: [PATCH] correction sco_excel --- app/scodoc/sco_excel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_excel.py b/app/scodoc/sco_excel.py index 9233b5e5..2c95c7ef 100644 --- a/app/scodoc/sco_excel.py +++ b/app/scodoc/sco_excel.py @@ -654,7 +654,7 @@ def _excel_to_list(filelike): diag.append("Attention: n'utilise que la première feuille du classeur !") sheet_name = workbook.get_sheet_names()[0] ws = workbook[sheet_name] - matrix, diag_sheet = _excel_sheet_to_list(ws, sheet_name) + diag_sheet, matrix = _excel_sheet_to_list(ws, sheet_name) diag += diag_sheet return diag, matrix @@ -708,7 +708,7 @@ def _excel_workbook_to_list(filelike): for sheet_name in workbook.get_sheet_names(): # fill matrix sheet = workbook.get_sheet_by_name(sheet_name) - matrix, diag_sheet = _excel_sheet_to_list(sheet, sheet_name) + diag_sheet, matrix = _excel_sheet_to_list(sheet, sheet_name) diag += diag_sheet matrix_list.append(matrix) return diag, matrix_list