From 0cd736be4eefe00cf728ff0ebe6a1a3186b460e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sat, 1 Jun 2024 00:09:03 +0800 Subject: [PATCH] dump --- LunaTranslator/LunaTranslator/cishu/mdict.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LunaTranslator/LunaTranslator/cishu/mdict.py b/LunaTranslator/LunaTranslator/cishu/mdict.py index 1f81fa6f..9d20858e 100644 --- a/LunaTranslator/LunaTranslator/cishu/mdict.py +++ b/LunaTranslator/LunaTranslator/cishu/mdict.py @@ -2360,7 +2360,11 @@ class mdict(cishubase): diss = {} import winsharedutils + dedump = set() for k in index("*" + word + "*"): + if k in dedump: + continue + dedump.add(k) dis = winsharedutils.distance(k, word) if dis <= distance: results.append(k)