forked from ScoDoc/ScoDoc
Log enregistrement jurys BUT
This commit is contained in:
parent
7d76747c83
commit
8ca59fe226
@ -718,6 +718,7 @@ class DecisionsProposeesAnnee(DecisionsProposees):
|
|||||||
)
|
)
|
||||||
db.session.add(self.validation)
|
db.session.add(self.validation)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
log(f"Recording {self}: {code}")
|
||||||
Scolog.logdb(
|
Scolog.logdb(
|
||||||
method="jury_but",
|
method="jury_but",
|
||||||
etudid=self.etud.id,
|
etudid=self.etud.id,
|
||||||
@ -1005,9 +1006,6 @@ class DecisionsProposeesRCUE(DecisionsProposees):
|
|||||||
if code is None:
|
if code is None:
|
||||||
self.validation = None
|
self.validation = None
|
||||||
else:
|
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(
|
self.validation = ApcValidationRCUE(
|
||||||
etudid=self.etud.id,
|
etudid=self.etud.id,
|
||||||
formsemestre_id=self.rcue.formsemestre_2.id,
|
formsemestre_id=self.rcue.formsemestre_2.id,
|
||||||
@ -1024,6 +1022,8 @@ class DecisionsProposeesRCUE(DecisionsProposees):
|
|||||||
msg=f"Validation {self.rcue}: {code}",
|
msg=f"Validation {self.rcue}: {code}",
|
||||||
commit=True,
|
commit=True,
|
||||||
)
|
)
|
||||||
|
log(f"rcue.record {self}: {code}")
|
||||||
|
|
||||||
# Modifie au besoin les codes d'UE
|
# Modifie au besoin les codes d'UE
|
||||||
if code == "ADJ":
|
if code == "ADJ":
|
||||||
deca = self.deca
|
deca = self.deca
|
||||||
@ -1049,6 +1049,7 @@ class DecisionsProposeesRCUE(DecisionsProposees):
|
|||||||
# par prudence, on requete toutes les validations, en cas de doublons
|
# par prudence, on requete toutes les validations, en cas de doublons
|
||||||
validations = self.rcue.query_validations()
|
validations = self.rcue.query_validations()
|
||||||
for validation in validations:
|
for validation in validations:
|
||||||
|
log(f"DecisionsProposeesRCUE: deleting {validation}")
|
||||||
db.session.delete(validation)
|
db.session.delete(validation)
|
||||||
db.session.flush()
|
db.session.flush()
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from app import db
|
from app import db
|
||||||
|
from app import log
|
||||||
from app.models import SHORT_STR_LEN
|
from app.models import SHORT_STR_LEN
|
||||||
from app.models import CODE_STR_LEN
|
from app.models import CODE_STR_LEN
|
||||||
from app.models.events import Scolog
|
from app.models.events import Scolog
|
||||||
@ -123,6 +124,7 @@ class ScolarAutorisationInscription(db.Model):
|
|||||||
Scolog.logdb(
|
Scolog.logdb(
|
||||||
"autorise_etud", etudid=etudid, msg=f"Passage vers S{semestre_id}: autorisé"
|
"autorise_etud", etudid=etudid, msg=f"Passage vers S{semestre_id}: autorisé"
|
||||||
)
|
)
|
||||||
|
log(f"ScolarAutorisationInscription: recording {autorisation}")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def delete_autorisation_etud(
|
def delete_autorisation_etud(
|
||||||
@ -136,6 +138,7 @@ class ScolarAutorisationInscription(db.Model):
|
|||||||
)
|
)
|
||||||
for autorisation in autorisations:
|
for autorisation in autorisations:
|
||||||
db.session.delete(autorisation)
|
db.session.delete(autorisation)
|
||||||
|
log(f"ScolarAutorisationInscription: deleting {autorisation}")
|
||||||
Scolog.logdb(
|
Scolog.logdb(
|
||||||
"autorise_etud",
|
"autorise_etud",
|
||||||
etudid=etudid,
|
etudid=etudid,
|
||||||
|
@ -248,7 +248,7 @@ Etudiants:
|
|||||||
decisions_rcues: # on repère ici les RCUE par l'acronyme de leur 1ere UE (donc du S1)
|
decisions_rcues: # on repère ici les RCUE par l'acronyme de leur 1ere UE (donc du S1)
|
||||||
"UE11":
|
"UE11":
|
||||||
code_valide: AJ
|
code_valide: AJ
|
||||||
decision_jury: AJ
|
decision_jury: AJ # inutile de la préciser mais on peut
|
||||||
rcue:
|
rcue:
|
||||||
moy_rcue: 9.00
|
moy_rcue: 9.00
|
||||||
est_compensable: False
|
est_compensable: False
|
||||||
|
Loading…
Reference in New Issue
Block a user