forked from ScoDoc/ScoDoc
Assiduites : bugfix justificatif delete
This commit is contained in:
parent
868533e30e
commit
0174d68a98
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user