1
0
forked from ScoDoc/ScoDoc

Fix: enregistrement codes décisions BUT + moyennes UEs

This commit is contained in:
Emmanuel Viennet 2022-06-24 15:24:33 +02:00
parent 441200dd5b
commit 7b1aec46e1

View File

@ -493,6 +493,7 @@ class DecisionsProposeesAnnee(DecisionsProposees):
f"code annee <tt>{html.escape(code)}</tt> invalide pour formsemestre {html.escape(self.formsemestre)}" f"code annee <tt>{html.escape(code)}</tt> invalide pour formsemestre {html.escape(self.formsemestre)}"
) )
if code == self.code_valide: if code == self.code_valide:
self.recorded = True
return # no change return # no change
if self.validation: if self.validation:
db.session.delete(self.validation) db.session.delete(self.validation)
@ -572,6 +573,7 @@ class DecisionsProposeesRCUE(DecisionsProposees):
f"code UE invalide pour ue_id={self.ue.id}: {html.escape(code)}" f"code UE invalide pour ue_id={self.ue.id}: {html.escape(code)}"
) )
if code == self.code_valide: if code == self.code_valide:
self.recorded = True
return # no change return # no change
parcours_id = self.parcour.id if self.parcour is not None else None parcours_id = self.parcour.id if self.parcour is not None else None
if self.validation: if self.validation:
@ -679,6 +681,7 @@ class DecisionsProposeesUE(DecisionsProposees):
f"code UE invalide pour ue_id={self.ue.id}: {html.escape(code)}" f"code UE invalide pour ue_id={self.ue.id}: {html.escape(code)}"
) )
if code == self.code_valide: if code == self.code_valide:
self.recorded = True
return # no change return # no change
if self.validation: if self.validation:
db.session.delete(self.validation) db.session.delete(self.validation)
@ -691,6 +694,7 @@ class DecisionsProposeesUE(DecisionsProposees):
formsemestre_id=self.formsemestre.id, formsemestre_id=self.formsemestre.id,
ue_id=self.ue.id, ue_id=self.ue.id,
code=code, code=code,
moy_ue=self.moy_ue,
) )
Scolog.logdb( Scolog.logdb(
method="jury_but", method="jury_but",