1
0
forked from ScoDoc/ScoDoc

Fix: erreur si titre module null

This commit is contained in:
Emmanuel Viennet 2021-12-12 21:49:03 +01:00
parent cf939587b1
commit 5c90448656

View File

@ -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()]