From 0d9af3a0ffb3e33297cf0ab012999b9045db5668 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9?= Date: Mon, 9 Dec 2024 17:15:11 +0100 Subject: [PATCH] Fix update siae.extra_data --- lemarche/crm/management/commands/crm_brevo_sync_companies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemarche/crm/management/commands/crm_brevo_sync_companies.py b/lemarche/crm/management/commands/crm_brevo_sync_companies.py index 1a5014a15..4590066e3 100644 --- a/lemarche/crm/management/commands/crm_brevo_sync_companies.py +++ b/lemarche/crm/management/commands/crm_brevo_sync_companies.py @@ -49,7 +49,7 @@ def handle(self, recently_updated: bool, **options): } # extra_data update if needed - if siae.extra_data != new_extra_data: + if siae.extra_data.get("brevo_company_data") != new_extra_data: siae.extra_data.update( { "brevo_company_data": new_extra_data,