forked from ScoDoc/ScoDoc
Fix: erreur si titre module null
This commit is contained in:
parent
cf939587b1
commit
5c90448656
@ -1115,9 +1115,8 @@ def formsemestre_tableau_modules(
|
|||||||
H = []
|
H = []
|
||||||
prev_ue_id = None
|
prev_ue_id = None
|
||||||
for modimpl in modimpls:
|
for modimpl in modimpls:
|
||||||
# mod = modimpl["module"]
|
|
||||||
mod = Module.query.get(modimpl["module_id"])
|
mod = Module.query.get(modimpl["module_id"])
|
||||||
mod_descr = "Module " + mod.titre
|
mod_descr = "Module " + mod.titre or ""
|
||||||
if mod.is_apc():
|
if mod.is_apc():
|
||||||
coef_descr = ", ".join(
|
coef_descr = ", ".join(
|
||||||
[f"{ue_acro}: {co}" for ue_acro, co in mod.ue_coefs_descr()]
|
[f"{ue_acro}: {co}" for ue_acro, co in mod.ue_coefs_descr()]
|
||||||
|
Loading…
Reference in New Issue
Block a user