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
60c157222b
commit
41e065f6ab
@ -206,6 +206,7 @@ class DecisionsProposeesAnnee(DecisionsProposees):
|
|||||||
sco_codes.DEF,
|
sco_codes.DEF,
|
||||||
sco_codes.DEM,
|
sco_codes.DEM,
|
||||||
sco_codes.EXCLU,
|
sco_codes.EXCLU,
|
||||||
|
sco_codes.NAR,
|
||||||
]
|
]
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
@ -444,6 +445,7 @@ class DecisionsProposeesAnnee(DecisionsProposees):
|
|||||||
+ '</div><div class="warning">'.join(messages)
|
+ '</div><div class="warning">'.join(messages)
|
||||||
+ "</div>"
|
+ "</div>"
|
||||||
)
|
)
|
||||||
|
self.codes = [self.codes[0]] + sorted(self.codes[1:])
|
||||||
|
|
||||||
# WIP TODO XXX def get_moyenne_annuelle(self)
|
# WIP TODO XXX def get_moyenne_annuelle(self)
|
||||||
|
|
||||||
@ -1120,6 +1122,7 @@ class DecisionsProposeesRCUE(DecisionsProposees):
|
|||||||
self.codes.insert(0, self.code_valide)
|
self.codes.insert(0, self.code_valide)
|
||||||
else:
|
else:
|
||||||
self.codes.insert(1, self.code_valide)
|
self.codes.insert(1, self.code_valide)
|
||||||
|
self.codes = [self.codes[0]] + sorted(self.codes[1:])
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return f"""<{self.__class__.__name__} rcue={self.rcue} valid={self.code_valide
|
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 = ue_status["cur_moy_ue"]
|
||||||
self.moy_ue_with_cap = ue_status["moy"]
|
self.moy_ue_with_cap = ue_status["moy"]
|
||||||
self.ue_status = ue_status
|
self.ue_status = ue_status
|
||||||
|
self.codes = [self.codes[0]] + sorted(self.codes[1:])
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return f"""<{self.__class__.__name__} ue={self.ue.acronyme} valid={self.code_valide
|
return f"""<{self.__class__.__name__} ue={self.ue.acronyme} valid={self.code_valide
|
||||||
|
Loading…
Reference in New Issue
Block a user