Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
Showing only changes of commit c492cf550a - Show all commits

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