From f246febe87354c727f483ec70d66cd4f6db7eec1 Mon Sep 17 00:00:00 2001 From: woni <320753691@qq.com> Date: Tue, 28 May 2024 17:44:49 +0800 Subject: [PATCH] fix print --- app/task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/task.py b/app/task.py index 415d049..1bc5aac 100644 --- a/app/task.py +++ b/app/task.py @@ -41,7 +41,7 @@ def process_message_callback( mentions_data = message_data.get("mentions") - if "官方应用指令" not in [mention.get("name") for mention in mentions_data]: + if "官方应用指令" not in [mention.get("name") for mention in mentions_data]: # 忽略@官方应用指令的消息 lark.logger.info("忽略非@官方应用的消息") return @@ -77,7 +77,7 @@ def process_message_callback( record["问题概述"] = content_text record["创建人"] = [{"id": sender_id}] - history_message_data = get_messages(client, message_id, images, cache_dir) + history_message_data = get_messages(client, "thread", thread_id, cache_dir) lark.logger.info(f"history_message_data: {history_message_data}") for image in images: