diff --git a/lemarche/utils/apis/api_brevo.py b/lemarche/utils/apis/api_brevo.py index d1b2fcfb0..69d3e57cf 100644 --- a/lemarche/utils/apis/api_brevo.py +++ b/lemarche/utils/apis/api_brevo.py @@ -1,11 +1,9 @@ import json import logging import time -import sib_api_v3_sdk -from datetime import timedelta +import sib_api_v3_sdk from django.conf import settings -from django.utils import timezone from huey.contrib.djhuey import task from sib_api_v3_sdk.rest import ApiException @@ -120,7 +118,7 @@ def create_or_update_company(siae): siae_brevo_company_body = sib_api_v3_sdk.Body( name=siae.name, - attributes = { + attributes={ # default attributes # name, owner, linked_contacts, revenue, number_of_employees, created_at, last_updated_at, next_activity_date, owner_assign_date, number_of_contacts, number_of_activities, industry # noqa "domain": siae.website,