From 5c90448656b69826153ca7b3018307ce28faab5f Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 12 Dec 2021 21:49:03 +0100 Subject: [PATCH] Fix: erreur si titre module null --- app/scodoc/sco_formsemestre_status.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/scodoc/sco_formsemestre_status.py b/app/scodoc/sco_formsemestre_status.py index 49aef568..1a018bad 100644 --- a/app/scodoc/sco_formsemestre_status.py +++ b/app/scodoc/sco_formsemestre_status.py @@ -1115,9 +1115,8 @@ def formsemestre_tableau_modules( H = [] prev_ue_id = None for modimpl in modimpls: - # mod = modimpl["module"] mod = Module.query.get(modimpl["module_id"]) - mod_descr = "Module " + mod.titre + mod_descr = "Module " + mod.titre or "" if mod.is_apc(): coef_descr = ", ".join( [f"{ue_acro}: {co}" for ue_acro, co in mod.ue_coefs_descr()]