forked from ScoDoc/ScoDoc
Jury BUT: présente toujours NAR sur année. Tri les codes dans les menus.
This commit is contained in:
parent
ff73ba8a5b
commit
544abba758
@ -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):
|
||||
+ '</div><div class="warning">'.join(messages)
|
||||
+ "</div>"
|
||||
)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user