From 6164c134c0c239834df57d1be205449ce083fdd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexa=20Valentov=C3=A1?= <git@imaniti.org> Date: Wed, 26 Mar 2025 15:11:31 +0100 Subject: [PATCH] Automatically update existing subscribers in ecomail API --- shared/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/utils.py b/shared/utils.py index 97291b60..657c6105 100644 --- a/shared/utils.py +++ b/shared/utils.py @@ -76,6 +76,7 @@ def subscribe_to_ecomail_newsletter( source: str, list_id: int | None = None, custom_data: dict | None = None, + update_existing: bool = True ): if custom_data is None: custom_data = {} @@ -91,7 +92,8 @@ def subscribe_to_ecomail_newsletter( "source": source, "tags": split_categories, **custom_data, - } + }, + "update_existing": update_existing, } response = requests.post( -- GitLab