1
0
forked from ScoDoc/ScoDoc

fix: recap jour null

This commit is contained in:
Emmanuel Viennet 2022-02-11 18:26:36 +01:00
parent a22ab4df2f
commit 95d65f05a1

View File

@ -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