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(