From c0d0fdc21df3b3537b46737c9b4c2118e9d2d1a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=83=9C=E6=9C=88?= <63870437+CMHopeSunshine@users.noreply.github.com> Date: Sat, 24 Dec 2022 12:03:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=AB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/utils/alias.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LittlePaimon/utils/alias.py b/LittlePaimon/utils/alias.py index 54fb31a..337a2e2 100644 --- a/LittlePaimon/utils/alias.py +++ b/LittlePaimon/utils/alias.py @@ -90,7 +90,7 @@ def get_match_alias(name: str, types: Union[List[ALIAS_TYPE], ALIAS_TYPE] = None for alias in alias_list.values(): if name in alias: if len(types) == 1 and one_to_list: - return [name] + return [alias[0]] matches[type].append(alias[0]) break if get_close_matches(name, alias, cutoff=0.6, n=3):