From c16963d899846c25dc19d0a15716111fdd203944 Mon Sep 17 00:00:00 2001 From: woni <320753691@qq.com> Date: Mon, 27 May 2024 19:04:25 +0800 Subject: [PATCH] fix print --- app/__init__.py | 6 +++--- app/task.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index ee43434..3200d62 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -70,9 +70,9 @@ def do_p2_im_message_receive_v1(data: P2ImMessageReceiveV1) -> None: print(f"thread_id: {thread_id}") print(f"thread_id: {message_id}") - # process_message_callback.delay( - # app_id, app_secret, bitable_token, table_id, cache_dir, clear_data - # ) + process_message_callback.delay( + app_id, app_secret, bitable_token, table_id, cache_dir, clear_data + ) print(lark.JSON.marshal(data)) print("=====================================") diff --git a/app/task.py b/app/task.py index f07f858..8e214fd 100644 --- a/app/task.py +++ b/app/task.py @@ -23,6 +23,7 @@ def process_message_callback( if message_type == "text" and message_content != "记录问题": message_content = content["text"].replace("@_user_1", "").strip() lark.logger.info(f"message_content: {message_content}") + return client = lark.Client.builder().app_id(app_id).app_secret(app_secret).build()