From d63eab527bcb55c1af5e00734325e9526764e970 Mon Sep 17 00:00:00 2001 From: Eric Winter Date: Tue, 18 Nov 2025 13:22:23 -0700 Subject: [PATCH] Updated to use new Slack file upload API. --- testingScripts/common.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/testingScripts/common.py b/testingScripts/common.py index 38dd5c25..13b32fae 100644 --- a/testingScripts/common.py +++ b/testingScripts/common.py @@ -33,7 +33,9 @@ from slack_sdk.errors import SlackApiError # Name of Slack channels to use as message target SLACK_CHANNEL_NAME = '#kaijudev' +SLACK_CHANNEL_ID = 'C01CGRFSUE9' SLACK_TEST_CHANNEL_NAME = '#kaijudev-testing' +SLACK_TEST_CHANNEL_ID = 'C06Q1RAMJ03' def read_strip_blanks_and_comments(path): @@ -386,12 +388,12 @@ def slack_send_image(slack_client, image_file_path, initial_comment='', None """ if is_test: - channel = SLACK_TEST_CHANNEL_NAME + channel_id = SLACK_TEST_CHANNEL_ID else: - channel = SLACK_CHANNEL_NAME + channel_id = SLACK_CHANNEL_ID try: - response = slack_client.files_upload( - channels=channel, + response = slack_client.files_upload_v2( + channel=channel_id, thread_ts=thread_ts, file=image_file_path, initial_comment=initial_comment,