From 84d40091a8bfaa5f226c542c98d1b08b2bef0d8d Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 17 Jun 2023 14:56:04 +0200 Subject: [PATCH] Fix: ordre des RCUE sur les bulletins --- app/models/but_validations.py | 8 ++++++-- sco_version.py | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/models/but_validations.py b/app/models/but_validations.py index d9b0e7e2d1..c2be058b3f 100644 --- a/app/models/but_validations.py +++ b/app/models/but_validations.py @@ -360,8 +360,12 @@ def dict_decision_jury(etud: Identite, formsemestre: FormSemestre) -> dict: # --- RCUEs: seulement sur semestres pairs XXX à améliorer if formsemestre.semestre_id % 2 == 0: # validations émises depuis ce formsemestre: - validations_rcues = ApcValidationRCUE.query.filter_by( - etudid=etud.id, formsemestre_id=formsemestre.id + validations_rcues = ( + ApcValidationRCUE.query.filter_by( + etudid=etud.id, formsemestre_id=formsemestre.id + ) + .join(UniteEns, UniteEns.id == ApcValidationRCUE.ue1_id) + .order_by(UniteEns.numero, UniteEns.acronyme) ) decisions["decision_rcue"] = [v.to_dict_bul() for v in validations_rcues] titres_rcues = [] diff --git a/sco_version.py b/sco_version.py index cb65163a22..02d22d18df 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.4.85" +SCOVERSION = "9.4.86" SCONAME = "ScoDoc"