From c8d2e6760fc27398175fdf4d1cca2a5474806624 Mon Sep 17 00:00:00 2001 From: CMHopeSunshine <277073121@qq.com> Date: Fri, 22 Dec 2023 23:54:36 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=9B=B4=E6=96=B0=E6=98=9F?= =?UTF-8?q?=E9=93=81wiki?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/plugins/star_rail_wiki/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LittlePaimon/plugins/star_rail_wiki/__init__.py b/LittlePaimon/plugins/star_rail_wiki/__init__.py index a347589..b120211 100644 --- a/LittlePaimon/plugins/star_rail_wiki/__init__.py +++ b/LittlePaimon/plugins/star_rail_wiki/__init__.py @@ -80,9 +80,9 @@ async def sr_wiki_handler(state: T_State, regex_dict: dict = RegexDict()): if name: state['name'] = Message(name) else: - data = list(name_map[TYPE_MAP[type]].values()) + data = [i[0] for i in name_map[TYPE_MAP[type]].values()] state['name_list'] = '\n'.join( - [' '.join(data[i: i + 3][0]) for i in range(0, len(data), 3)] + [' '.join(data[i: i + 3]) for i in range(0, len(data), 3)] ) state['times'] = 1