forked from ScoDoc/ScoDoc
Fix: invalidations cache si désinscription ou DEM individuelle
This commit is contained in:
parent
b728e06f27
commit
19a0d9fdcb
@ -176,6 +176,9 @@ def do_formsemestre_demission(
|
||||
)
|
||||
db.session.add(event)
|
||||
db.session.commit()
|
||||
sco_cache.invalidate_formsemestre(
|
||||
formsemestre_id=formsemestre_id
|
||||
) # > démission ou défaillance
|
||||
if etat_new == scu.DEMISSION:
|
||||
flash("Démission enregistrée")
|
||||
elif etat_new == scu.DEF:
|
||||
@ -188,7 +191,7 @@ def do_formsemestre_inscription_edit(args=None, formsemestre_id=None):
|
||||
_formsemestre_inscriptionEditor.edit(cnx, args)
|
||||
sco_cache.invalidate_formsemestre(
|
||||
formsemestre_id=formsemestre_id
|
||||
) # > modif inscription semestre (demission ?)
|
||||
) # > modif inscription semestre
|
||||
|
||||
|
||||
def do_formsemestre_desinscription(etudid, formsemestre_id):
|
||||
@ -240,6 +243,7 @@ def do_formsemestre_desinscription(etudid, formsemestre_id):
|
||||
do_formsemestre_inscription_delete(
|
||||
insem["formsemestre_inscription_id"], formsemestre_id=formsemestre_id
|
||||
)
|
||||
sco_cache.invalidate_formsemestre(formsemestre_id=formsemestre_id)
|
||||
# --- Semestre extérieur
|
||||
if formsemestre.modalite == "EXT":
|
||||
inscrits = do_formsemestre_inscription_list(
|
||||
|
Loading…
Reference in New Issue
Block a user