forked from ScoDoc/ScoDoc
Update opolka/ScoDoc from ScoDoc/ScoDoc #2
@ -1399,7 +1399,7 @@ def check_formation_ues(formation: Formation) -> tuple[str, dict[int, list[Unite
|
||||
if (
|
||||
len(semestre_ids) > 1
|
||||
): # plusieurs semestres d'indices differents dans le cursus
|
||||
ue_multiples[ue["ue_id"]] = sems
|
||||
ue_multiples[ue.id] = sems
|
||||
|
||||
if not ue_multiples:
|
||||
return "", {}
|
||||
@ -1423,12 +1423,12 @@ def check_formation_ues(formation: Formation) -> tuple[str, dict[int, list[Unite
|
||||
]
|
||||
slist = ", ".join(
|
||||
[
|
||||
"""%(titreannee)s (<em>semestre <b class="fontred">%(semestre_id)s</b></em>)"""
|
||||
% s
|
||||
f"""{s['titreannee']
|
||||
} (<em>semestre <b class="fontred">{s['semestre_id']}</b></em>)"""
|
||||
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>")
|
||||
|
||||
return "\n".join(H), ue_multiples
|
||||
|
Loading…
Reference in New Issue
Block a user