Fix quarantine (#1241)

* add more logging

* fix quarantine email incorrect deleted_at
This commit is contained in:
Son Nguyen Kim 2022-08-18 14:47:05 +02:00 committed by GitHub
parent ba06852dc2
commit b299a305b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ def delete_refused_emails():
# do not set path and full_report_path to null
# so we can check later that the files are indeed deleted
refused_email.delete_at = arrow.now()
refused_email.deleted = True
Session.commit()