diff --git a/config/settings/base.py b/config/settings/base.py index 73b378912..283dda19a 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -547,6 +547,7 @@ SLACK_NOTIF_IS_ACTIVE = env.bool("SLACK_NOTIF_IS_ACTIVE", False) 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") # API Marché APProch MARCHE_APPROCH_TOKEN_RECETTE = env.str("MARCHE_APPROCH_TOKEN_RECETTE", "set-it") diff --git a/lemarche/www/tenders/tasks.py b/lemarche/www/tenders/tasks.py index 473540845..4289ab0ad 100644 --- a/lemarche/www/tenders/tasks.py +++ b/lemarche/www/tenders/tasks.py @@ -449,7 +449,7 @@ def notify_admin_tender_created(tender: Tender): recipient_list=[settings.NOTIFY_EMAIL], ) - api_slack.send_message_to_channel(text=email_body, service_id=settings.SLACK_WEBHOOK_C4_SUPPORT_CHANNEL) + api_slack.send_message_to_channel(text=email_body, service_id=settings.SLACK_WEBHOOK_C4_TENDER_CHANNEL) def send_author_incremental_2_days_email(tender: Tender): @@ -556,4 +556,4 @@ def notify_admin_siae_wants_cocontracting(tender: Tender, siae: Siae): ) if settings.BITOUBI_ENV == "prod": - api_slack.send_message_to_channel(text=email_body, service_id=settings.SLACK_WEBHOOK_C4_SUPPORT_CHANNEL) + api_slack.send_message_to_channel(text=email_body, service_id=settings.SLACK_WEBHOOK_C4_TENDER_CHANNEL)