Assiduites : bugfix justificatif delete

This commit is contained in:
iziram 2023-07-30 18:59:06 +02:00
parent 868533e30e
commit 0174d68a98

View File

@ -426,11 +426,14 @@ def _delete_singular(justif_id: int, database):
archiver.delete_justificatif(justificatif_unique.etudid, archive_name)
except ValueError:
pass
compute_assiduites_justified(
justificatif_unique.etudid, [justificatif_unique], True
)
scass.simple_invalidate_cache(justificatif_unique.to_dict())
database.session.delete(justificatif_unique)
compute_assiduites_justified(
justificatif_unique.etudid,
Justificatif.query.filter_by(etudid=justificatif_unique.etudid).all(),
True,
)
return (200, "OK")