Skip to content
Snippets Groups Projects
Commit 91af5704 authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

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

parent 906ed133
No related branches found
No related tags found
No related merge requests found
...@@ -928,7 +928,7 @@ def _get_sheet_evaluations( ...@@ -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}')"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment