summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-06-14 12:27:25 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-06-14 12:27:25 +0700
commitb87f89b8af2731e02d6ab095c3e92e48b39b4f6c (patch)
tree10828d8fa265883ac93e7044a580eff9ec564bcc
parentcca8698ed6617ff8ef79df0790861a08377c526b (diff)
(andri) fix retry
-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)