forked from ScoDoc/DocScoDoc
Merge branch 'master' of https://scodoc.org/git/viennet/ScoDoc
This commit is contained in:
commit
2d7b2547b8
@ -576,7 +576,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')
|
||||
|
@ -2093,6 +2093,7 @@ sco_publish(
|
||||
"/photos_import_files_form",
|
||||
sco_trombino.photos_import_files_form,
|
||||
Permission.ScoEtudChangeAdr,
|
||||
methods=["GET", "POST"],
|
||||
)
|
||||
sco_publish(
|
||||
"/photos_generate_excel_sample",
|
||||
|
Loading…
Reference in New Issue
Block a user