summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/mail_mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/mail_mail.py b/indoteknik_custom/models/mail_mail.py
index cbcd883a..792b97b7 100644
--- a/indoteknik_custom/models/mail_mail.py
+++ b/indoteknik_custom/models/mail_mail.py
@@ -14,7 +14,7 @@ class MailMail(models.Model):
# Filter hanya email gagal dalam 7 hari terakhir
mails = self.search([
- ('state', 'in', 'exception'),
+ ('state', 'in', ['exception']),
('create_date', '>=', seven_days_ago),
('create_date', '<=', now),
], limit=250)