summaryrefslogtreecommitdiff
path: root/fixco_custom/models/webhook_ginee.py
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2025-12-29 16:14:02 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2025-12-29 16:14:02 +0700
commit35f6888e67e9303bf6eb1e2e3c5f77f24301f02d (patch)
tree7f756747b32bcf6207f90365ecdc2bcb0dc9bd8f /fixco_custom/models/webhook_ginee.py
parentcd171091ddb3382c54000e2837afe9f6d9dd66a2 (diff)
parent1c42785d665f1b4d459e468d9c0428bc6f767954 (diff)
merge
Merge branch 'main' of https://bitbucket.org/altafixco/fixco-addons
Diffstat (limited to 'fixco_custom/models/webhook_ginee.py')
-rwxr-xr-xfixco_custom/models/webhook_ginee.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/fixco_custom/models/webhook_ginee.py b/fixco_custom/models/webhook_ginee.py
index 606bd21..65f2238 100755
--- a/fixco_custom/models/webhook_ginee.py
+++ b/fixco_custom/models/webhook_ginee.py
@@ -31,6 +31,9 @@ class WebhookGinee(models.Model):
# rec.execute_queue()
def process_queue_item(self, limit=100):
+ now = time.strftime('%Y-%m-%d %H:%M:%S')
+ if now < '2025-12-31 00:00:00':
+ return
domain = [('execute_status', '=', False)]
records = self.search(domain, order='create_date asc', limit=limit)
for rec in records: