From 928251041c37b455a36bf6aa889893cb67dd192f Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Thu, 7 Dec 2023 19:17:14 +0100 Subject: [PATCH] =?UTF-8?q?[Tech]=20Modifier=20le=20canal=20par=20d=C3=A9f?= =?UTF-8?q?aut=20d'envoi=20des=20notifications=20Slack=20(#1012)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/settings/base.py | 1 + lemarche/utils/apis/api_slack.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/settings/base.py b/config/settings/base.py index 60788f836..d3035183c 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -555,6 +555,7 @@ SLACK_WEBHOOK_C4_CHANNEL = env.str("SLACK_WEBHOOK_C4_CHANNEL", "set-it") SLACK_WEBHOOK_C4_SUPPORT_CHANNEL = env.str("SLACK_WEBHOOK_C4_SUPPORT_CHANNEL", "set-it") SLACK_WEBHOOK_C4_TENDER_CHANNEL = env.str("SLACK_WEBHOOK_C4_TENDER_CHANNEL", "set-it") +SLACK_WEBHOOK_C4_TECH_NOTIFICATIONS_CHANNEL = env.str("SLACK_WEBHOOK_C4_TECH_NOTIFICATIONS_CHANNEL", "set-it") # API Marché APProch MARCHE_APPROCH_TOKEN_RECETTE = env.str("MARCHE_APPROCH_TOKEN_RECETTE", "set-it") diff --git a/lemarche/utils/apis/api_slack.py b/lemarche/utils/apis/api_slack.py index 32cec4f85..64677d132 100644 --- a/lemarche/utils/apis/api_slack.py +++ b/lemarche/utils/apis/api_slack.py @@ -28,7 +28,7 @@ def get_default_client(params={}): @task() def send_message_to_channel( - text: str, service_id: str = settings.SLACK_WEBHOOK_C4_SUPPORT_CHANNEL, client: requests.Session = None + text: str, service_id: str = settings.SLACK_WEBHOOK_C4_TECH_NOTIFICATIONS_CHANNEL, client: requests.Session = None ): """Huey task to send message to specific payload for specific slack service