From 740df3580c21dc22f5b21758883ccbf0bddff99d Mon Sep 17 00:00:00 2001 From: lloydzhou Date: Thu, 4 Jan 2024 12:02:50 +0800 Subject: [PATCH] update --- server/utils/lark/issue_manual_help.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/server/utils/lark/issue_manual_help.py b/server/utils/lark/issue_manual_help.py index f5c2c2ed..cf2a3970 100644 --- a/server/utils/lark/issue_manual_help.py +++ b/server/utils/lark/issue_manual_help.py @@ -47,12 +47,7 @@ def __init__( content="** 🏖️ 重新分配 Issue 负责人**\n*话题下回复「/assign + @成员」 **", tag="lark_md", extra=FeishuMessageSelectPerson( - *[ - { - "value": person["open_id"], - } - for person in persons - ], + *[FeishuMessageOption(value=open_id) for open_id in persons], placeholder=",".join(assignees), value={ "key": "value", # TODO 这里字段的意义需要再看一下,应该是已经选中的人员的openid @@ -136,7 +131,9 @@ def __init__( from dotenv import find_dotenv, load_dotenv load_dotenv(find_dotenv()) - message = IssueManualHelp(tags=["bug", "doc"]) + message = IssueManualHelp( + persons=os.environ.get("TEST_USER_OPEN_ID").split(","), tags=["bug", "doc"] + ) print("message", json.dumps(message)) result = httpx.post( os.environ.get("TEST_BOT_HOOK"),