From c492cf550a6df2dd04dbcd6f1ed94c33361b7059 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 22 Feb 2024 16:50:25 +0100 Subject: [PATCH] Fix: typo check_formation_ues --- app/scodoc/sco_formsemestre_validation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/scodoc/sco_formsemestre_validation.py b/app/scodoc/sco_formsemestre_validation.py index 68a18d602..7c68ddf9f 100644 --- a/app/scodoc/sco_formsemestre_validation.py +++ b/app/scodoc/sco_formsemestre_validation.py @@ -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 (semestre %(semestre_id)s)""" - % s + f"""{s['titreannee'] + } (semestre {s['semestre_id']})""" for s in sems ] ) - H.append("
  • %s : %s
  • " % (ue.acronyme, slist)) + H.append(f"
  • {ue.acronyme} : {slist}
  • ") H.append("") return "\n".join(H), ue_multiples