1
0
forked from ScoDoc/ScoDoc

Fix: upload notes excel sans indiquer d'éval.

This commit is contained in:
Emmanuel Viennet 2024-08-24 19:41:29 +02:00
parent 906ed1331b
commit 91af5704dc

View File

@ -928,7 +928,7 @@ def _get_sheet_evaluations(
i, r = _xls_search_sheet_code(rows, diag)
if isinstance(r, int): # mono-eval
sheet_eval_id = r
if sheet_eval_id != evaluation.id:
if (evaluation is None) or (sheet_eval_id != evaluation.id):
diag.append(
f"""Erreur: fichier invalide: le code d'évaluation de correspond pas ! ('{
sheet_eval_id or ('non trouvé')}' != '{evaluation.id}')"""