Log enregistrement jurys BUT

This commit is contained in:
Emmanuel Viennet 2023-01-11 15:09:03 -03:00
parent 7d76747c83
commit 8ca59fe226
4 changed files with 11 additions and 7 deletions

View File

@ -718,6 +718,7 @@ class DecisionsProposeesAnnee(DecisionsProposees):
)
db.session.add(self.validation)
db.session.commit()
log(f"Recording {self}: {code}")
Scolog.logdb(
method="jury_but",
etudid=self.etud.id,
@ -1005,9 +1006,6 @@ class DecisionsProposeesRCUE(DecisionsProposees):
if code is None:
self.validation = None
else:
# log(
# f"RCUE.record(etudid={self.etud.id}, ue1_id={self.rcue.ue_1.id}, ue2_id={self.rcue.ue_2.id}, code={code} )"
# )
self.validation = ApcValidationRCUE(
etudid=self.etud.id,
formsemestre_id=self.rcue.formsemestre_2.id,
@ -1024,6 +1022,8 @@ class DecisionsProposeesRCUE(DecisionsProposees):
msg=f"Validation {self.rcue}: {code}",
commit=True,
)
log(f"rcue.record {self}: {code}")
# Modifie au besoin les codes d'UE
if code == "ADJ":
deca = self.deca
@ -1049,6 +1049,7 @@ class DecisionsProposeesRCUE(DecisionsProposees):
# par prudence, on requete toutes les validations, en cas de doublons
validations = self.rcue.query_validations()
for validation in validations:
log(f"DecisionsProposeesRCUE: deleting {validation}")
db.session.delete(validation)
db.session.flush()

View File

@ -4,6 +4,7 @@
"""
from app import db
from app import log
from app.models import SHORT_STR_LEN
from app.models import CODE_STR_LEN
from app.models.events import Scolog
@ -123,6 +124,7 @@ class ScolarAutorisationInscription(db.Model):
Scolog.logdb(
"autorise_etud", etudid=etudid, msg=f"Passage vers S{semestre_id}: autorisé"
)
log(f"ScolarAutorisationInscription: recording {autorisation}")
@classmethod
def delete_autorisation_etud(
@ -136,6 +138,7 @@ class ScolarAutorisationInscription(db.Model):
)
for autorisation in autorisations:
db.session.delete(autorisation)
log(f"ScolarAutorisationInscription: deleting {autorisation}")
Scolog.logdb(
"autorise_etud",
etudid=etudid,

View File

@ -248,7 +248,7 @@ Etudiants:
decisions_rcues: # on repère ici les RCUE par l'acronyme de leur 1ere UE (donc du S1)
"UE11":
code_valide: AJ
decision_jury: AJ
decision_jury: AJ # inutile de la préciser mais on peut
rcue:
moy_rcue: 9.00
est_compensable: False