Skip to content
Snippets Groups Projects
Commit 84d40091 authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

Fix: ordre des RCUE sur les bulletins

parent f9b45392
Branches
No related tags found
No related merge requests found
...@@ -360,9 +360,13 @@ def dict_decision_jury(etud: Identite, formsemestre: FormSemestre) -> dict: ...@@ -360,9 +360,13 @@ def dict_decision_jury(etud: Identite, formsemestre: FormSemestre) -> dict:
# --- RCUEs: seulement sur semestres pairs XXX à améliorer # --- RCUEs: seulement sur semestres pairs XXX à améliorer
if formsemestre.semestre_id % 2 == 0: if formsemestre.semestre_id % 2 == 0:
# validations émises depuis ce formsemestre: # validations émises depuis ce formsemestre:
validations_rcues = ApcValidationRCUE.query.filter_by( validations_rcues = (
ApcValidationRCUE.query.filter_by(
etudid=etud.id, formsemestre_id=formsemestre.id 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] decisions["decision_rcue"] = [v.to_dict_bul() for v in validations_rcues]
titres_rcues = [] titres_rcues = []
for dec_rcue in decisions["decision_rcue"]: for dec_rcue in decisions["decision_rcue"]:
......
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.4.85" SCOVERSION = "9.4.86"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment