From 6d93c15b99574106342b466ad03873030eac7558 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Thu, 29 Feb 2024 10:18:46 +0100 Subject: [PATCH] Fix errors --- lemarche/crm/management/commands/crm_brevo_sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lemarche/crm/management/commands/crm_brevo_sync.py b/lemarche/crm/management/commands/crm_brevo_sync.py index 488f18505..8a015bf61 100644 --- a/lemarche/crm/management/commands/crm_brevo_sync.py +++ b/lemarche/crm/management/commands/crm_brevo_sync.py @@ -8,7 +8,7 @@ from lemarche.utils.commands import BaseCommand -ten_days_ago = timezone.now() - timedelta(days=4) +ten_days_ago = timezone.now() - timedelta(days=10) class Command(BaseCommand): @@ -25,7 +25,7 @@ def handle(self, **options): # SIAE --> companies # Update only the recently updated - siaes_qs = Siae.objects.filter(updated_at__lte=ten_days_ago) + siaes_qs = Siae.objects.filter(updated_at__gte=ten_days_ago) progress = 0 self.stdout.write(