forked from ScoDoc/ScoDoc
Fix: upload notes excel sans indiquer d'éval.
This commit is contained in:
parent
906ed1331b
commit
91af5704dc
@ -928,7 +928,7 @@ def _get_sheet_evaluations(
|
|||||||
i, r = _xls_search_sheet_code(rows, diag)
|
i, r = _xls_search_sheet_code(rows, diag)
|
||||||
if isinstance(r, int): # mono-eval
|
if isinstance(r, int): # mono-eval
|
||||||
sheet_eval_id = r
|
sheet_eval_id = r
|
||||||
if sheet_eval_id != evaluation.id:
|
if (evaluation is None) or (sheet_eval_id != evaluation.id):
|
||||||
diag.append(
|
diag.append(
|
||||||
f"""Erreur: fichier invalide: le code d'évaluation de correspond pas ! ('{
|
f"""Erreur: fichier invalide: le code d'évaluation de correspond pas ! ('{
|
||||||
sheet_eval_id or ('non trouvé')}' != '{evaluation.id}')"""
|
sheet_eval_id or ('non trouvé')}' != '{evaluation.id}')"""
|
||||||
|
Loading…
Reference in New Issue
Block a user