From ea366ccf9757e53f0d401f373e9fa79c74747277 Mon Sep 17 00:00:00 2001 From: woni <320753691@qq.com> Date: Thu, 13 Jun 2024 16:41:09 +0800 Subject: [PATCH] fix some bugs --- app/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/task.py b/app/task.py index 1fbba31..700b9ad 100644 --- a/app/task.py +++ b/app/task.py @@ -296,6 +296,7 @@ def process_new_robot(app_id, app_secret, action_data): .log_level(lark.LogLevel.DEBUG) .build() ) + bitable_token = os.environ["OFFICE_XBOT_BITABLE_TOKEN"] if category == "optRTwYcra": robot_uuid = new_blank_robot(name, user_id) @@ -317,6 +318,5 @@ def process_new_robot(app_id, app_secret, action_data): # 更新多维表格分类管理 table_id = "tbl2GcBvkvMtOBnl" - bitable_token = os.environ["OFFICE_XBOT_BITABLE_TOKEN"] add_record(client, bitable_token, table_id, catagory_table_record)