Jury BUT: code par défaut RED si 1 RCUE < 8

This commit is contained in:
Emmanuel Viennet 2022-06-26 09:52:50 +02:00
parent 4f7827f8c2
commit 8fd696ff7e

View File

@ -311,7 +311,12 @@ class DecisionsProposeesAnnee(DecisionsProposees):
self.codes = [sco_codes.PASD, sco_codes.ADJ] + self.codes
self.explanation = expl_rcues
elif self.valide_moitie_rcue: # mais au moins 1 rcue insuffisante
self.codes = [sco_codes.PAS1NCI, sco_codes.ADJ] + self.codes
self.codes = [
sco_codes.RED,
sco_codes.NAR,
sco_codes.PAS1NCI,
sco_codes.ADJ,
] + self.codes
self.explanation = expl_rcues + f" et {self.nb_rcues_under_8} < 8"
else:
self.codes = [sco_codes.RED, sco_codes.NAR, sco_codes.ADJ] + self.codes