forked from ScoDoc/ScoDoc
Update opolka/ScoDoc from ScoDoc/ScoDoc #2
@ -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