Skip to content
Snippets Groups Projects
Commit 0174d68a authored by iziram's avatar iziram
Browse files

Assiduites : bugfix justificatif delete

parent 868533e3
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment