From 544abba7581046170e5a94e9a7385a3e9efde8cb Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 21 Jun 2023 13:27:46 +0200 Subject: [PATCH] =?UTF-8?q?Jury=20BUT:=20pr=C3=A9sente=20toujours=20NAR=20?= =?UTF-8?q?sur=20ann=C3=A9e.=20Tri=20les=20codes=20dans=20les=20menus.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/but/jury_but.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/but/jury_but.py b/app/but/jury_but.py index 83b1d9dd..73310cb6 100644 --- a/app/but/jury_but.py +++ b/app/but/jury_but.py @@ -206,6 +206,7 @@ class DecisionsProposeesAnnee(DecisionsProposees): sco_codes.DEF, sco_codes.DEM, sco_codes.EXCLU, + sco_codes.NAR, ] def __init__( @@ -444,6 +445,7 @@ class DecisionsProposeesAnnee(DecisionsProposees): + '
'.join(messages) + "
" ) + self.codes = [self.codes[0]] + sorted(self.codes[1:]) # WIP TODO XXX def get_moyenne_annuelle(self) @@ -1120,6 +1122,7 @@ class DecisionsProposeesRCUE(DecisionsProposees): self.codes.insert(0, self.code_valide) else: self.codes.insert(1, self.code_valide) + self.codes = [self.codes[0]] + sorted(self.codes[1:]) def __repr__(self) -> str: return f"""<{self.__class__.__name__} rcue={self.rcue} valid={self.code_valide @@ -1483,6 +1486,7 @@ class DecisionsProposeesUE(DecisionsProposees): self.moy_ue = ue_status["cur_moy_ue"] self.moy_ue_with_cap = ue_status["moy"] self.ue_status = ue_status + self.codes = [self.codes[0]] + sorted(self.codes[1:]) def __repr__(self) -> str: return f"""<{self.__class__.__name__} ue={self.ue.acronyme} valid={self.code_valide