From 72b8e040648309e10fe0d09de99185fc52b91fcf Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 8 Jan 2022 17:22:51 +0100 Subject: [PATCH] ajout id orebut dans les niveaux de comp. --- app/comp/{sco_sem.py => res_sem.py} | 0 app/models/but_refcomp.py | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) rename app/comp/{sco_sem.py => res_sem.py} (100%) diff --git a/app/comp/sco_sem.py b/app/comp/res_sem.py similarity index 100% rename from app/comp/sco_sem.py rename to app/comp/res_sem.py diff --git a/app/models/but_refcomp.py b/app/models/but_refcomp.py index a6a98d1e6..798164253 100644 --- a/app/models/but_refcomp.py +++ b/app/models/but_refcomp.py @@ -271,7 +271,10 @@ class ApcAnneeParcours(db.Model, XMLModel): return { "ordre": self.ordre, "competences": { - x.competence.titre: {"niveau": x.niveau} + x.competence.titre: { + "niveau": x.niveau, + "id_orebut": x.competence.id_orebut, + } for x in self.niveaux_competences }, }