1
0
forked from ScoDoc/ScoDoc

Fix: invalidations cache si désinscription ou DEM individuelle

This commit is contained in:
Emmanuel Viennet 2023-02-23 21:48:40 +01:00
parent b728e06f27
commit 19a0d9fdcb

View File

@ -176,6 +176,9 @@ def do_formsemestre_demission(
) )
db.session.add(event) db.session.add(event)
db.session.commit() db.session.commit()
sco_cache.invalidate_formsemestre(
formsemestre_id=formsemestre_id
) # > démission ou défaillance
if etat_new == scu.DEMISSION: if etat_new == scu.DEMISSION:
flash("Démission enregistrée") flash("Démission enregistrée")
elif etat_new == scu.DEF: elif etat_new == scu.DEF:
@ -188,7 +191,7 @@ def do_formsemestre_inscription_edit(args=None, formsemestre_id=None):
_formsemestre_inscriptionEditor.edit(cnx, args) _formsemestre_inscriptionEditor.edit(cnx, args)
sco_cache.invalidate_formsemestre( sco_cache.invalidate_formsemestre(
formsemestre_id=formsemestre_id formsemestre_id=formsemestre_id
) # > modif inscription semestre (demission ?) ) # > modif inscription semestre
def do_formsemestre_desinscription(etudid, formsemestre_id): def do_formsemestre_desinscription(etudid, formsemestre_id):
@ -240,6 +243,7 @@ def do_formsemestre_desinscription(etudid, formsemestre_id):
do_formsemestre_inscription_delete( do_formsemestre_inscription_delete(
insem["formsemestre_inscription_id"], formsemestre_id=formsemestre_id insem["formsemestre_inscription_id"], formsemestre_id=formsemestre_id
) )
sco_cache.invalidate_formsemestre(formsemestre_id=formsemestre_id)
# --- Semestre extérieur # --- Semestre extérieur
if formsemestre.modalite == "EXT": if formsemestre.modalite == "EXT":
inscrits = do_formsemestre_inscription_list( inscrits = do_formsemestre_inscription_list(