Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
Showing only changes of commit 0174d68a98 - Show all commits

View File

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