From 33391e7143cf3d3243e3bbad707b52109267e068 Mon Sep 17 00:00:00 2001 From: jean-marie Place Date: Fri, 20 Aug 2021 09:17:44 +0200 Subject: [PATCH] migration photo_import_from_zip --- app/scodoc/sco_trombino.py | 2 +- app/views/scolar.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_trombino.py b/app/scodoc/sco_trombino.py index f4d7ce9705..c6f5cee5eb 100644 --- a/app/scodoc/sco_trombino.py +++ b/app/scodoc/sco_trombino.py @@ -582,7 +582,7 @@ def zip_excel_import_files( exceldata = xlsfile.read() if not exceldata: raise ScoValueError("Fichier excel vide ou invalide") - _, data = sco_excel.Excel_to_list(exceldata) + _, data = sco_excel.excel_bytes_to_list(exceldata) if not data: # probably a bug raise ScoValueError("Fichier excel vide !") # on doit avoir une colonne etudid et une colonne filename_title ('fichier_photo') diff --git a/app/views/scolar.py b/app/views/scolar.py index 557819131f..4fdd29a1c5 100644 --- a/app/views/scolar.py +++ b/app/views/scolar.py @@ -2094,6 +2094,7 @@ sco_publish( "/photos_import_files_form", sco_trombino.photos_import_files_form, Permission.ScoEtudChangeAdr, + methods=["GET", "POST"], ) sco_publish( "/photos_generate_excel_sample",