From 95d65f05a19ec92ec3634ee5488a2fdef1a200d3 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 11 Feb 2022 18:26:36 +0100 Subject: [PATCH] fix: recap jour null --- app/scodoc/sco_recapcomplet.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_recapcomplet.py b/app/scodoc/sco_recapcomplet.py index 3b87f8f58..90ca89683 100644 --- a/app/scodoc/sco_recapcomplet.py +++ b/app/scodoc/sco_recapcomplet.py @@ -853,7 +853,13 @@ def _list_notes_evals_titles(codemodule: str, evals: list[Evaluation]) -> list[s L = [] eval_index = len(evals) - 1 for e in evals: - L.append(codemodule + "-" + str(eval_index) + "-" + e.jour.isoformat()) + L.append( + codemodule + + "-" + + str(eval_index) + + "-" + + (e.jour.isoformat() if e.jour else "") + ) eval_index -= 1 return L