diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2025-12-29 16:14:02 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2025-12-29 16:14:02 +0700 |
| commit | 35f6888e67e9303bf6eb1e2e3c5f77f24301f02d (patch) | |
| tree | 7f756747b32bcf6207f90365ecdc2bcb0dc9bd8f /fixco_custom/models/webhook_ginee.py | |
| parent | cd171091ddb3382c54000e2837afe9f6d9dd66a2 (diff) | |
| parent | 1c42785d665f1b4d459e468d9c0428bc6f767954 (diff) | |
merge
Merge branch 'main' of https://bitbucket.org/altafixco/fixco-addons
Diffstat (limited to 'fixco_custom/models/webhook_ginee.py')
| -rwxr-xr-x | fixco_custom/models/webhook_ginee.py | 3 |
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: |
