summaryrefslogtreecommitdiff
path: root/fixco_custom/models/webhook_ginee.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-12-24 14:07:54 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-12-24 14:07:54 +0700
commit5dc0eb722ba306ed2e81acad1b6ba7457717af44 (patch)
tree0cb0fddb7deef4c300d3dc5441c26fba35f11056 /fixco_custom/models/webhook_ginee.py
parentaeeecacfe7b10ebbdefe5284f98e9e9f37c1b8d1 (diff)
push add lock date scheduler
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: