Fix: typo check_formation_ues

This commit is contained in:
Emmanuel Viennet 2024-02-22 16:50:25 +01:00
parent 2dd7154036
commit c492cf550a

View File

@ -1399,7 +1399,7 @@ def check_formation_ues(formation: Formation) -> tuple[str, dict[int, list[Unite
if ( if (
len(semestre_ids) > 1 len(semestre_ids) > 1
): # plusieurs semestres d'indices differents dans le cursus ): # plusieurs semestres d'indices differents dans le cursus
ue_multiples[ue["ue_id"]] = sems ue_multiples[ue.id] = sems
if not ue_multiples: if not ue_multiples:
return "", {} return "", {}
@ -1423,12 +1423,12 @@ def check_formation_ues(formation: Formation) -> tuple[str, dict[int, list[Unite
] ]
slist = ", ".join( slist = ", ".join(
[ [
"""%(titreannee)s (<em>semestre <b class="fontred">%(semestre_id)s</b></em>)""" f"""{s['titreannee']
% s } (<em>semestre <b class="fontred">{s['semestre_id']}</b></em>)"""
for s in sems for s in sems
] ]
) )
H.append("<li><b>%s</b> : %s</li>" % (ue.acronyme, slist)) H.append(f"<li><b>{ue.acronyme}</b> : {slist}</li>")
H.append("</ul></div>") H.append("</ul></div>")
return "\n".join(H), ue_multiples return "\n".join(H), ue_multiples