From e345561d432be57a8963fbe29c4a50fa6c587e80 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 15 Jul 2021 17:14:44 +0200 Subject: [PATCH] Fix call to formation_list --- app/scodoc/sco_formsemestre.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_formsemestre.py b/app/scodoc/sco_formsemestre.py index c21c642d2..087d82aa8 100644 --- a/app/scodoc/sco_formsemestre.py +++ b/app/scodoc/sco_formsemestre.py @@ -33,6 +33,7 @@ from operator import itemgetter from scodoc_manager import sco_mgr from app.scodoc import sco_codes_parcours from app.scodoc import sco_core +from app.scodoc import sco_formations from app.scodoc import sco_preferences from app.scodoc import sco_users from app.scodoc.gen_tables import GenTable @@ -132,7 +133,9 @@ def formsemestre_enrich(context, sem): from app.scodoc import sco_etud from app.views import notes - F = notes.formation_list(context, args={"formation_id": sem["formation_id"]})[0] + F = sco_formations.formation_list( + context, args={"formation_id": sem["formation_id"]} + )[0] parcours = sco_codes_parcours.get_parcours_from_code(F["type_parcours"]) # 'S1', 'S2', ... ou '' pour les monosemestres if sem["semestre_id"] != NO_SEMESTRE_ID: