From 461ddefe1394eae584e0901acfd45cae42c217f4 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: Sun, 11 Aug 2024 03:29:18 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/myutils/config.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/LunaTranslator/LunaTranslator/myutils/config.py b/LunaTranslator/LunaTranslator/myutils/config.py index ccc7bccc..d1463bc6 100644 --- a/LunaTranslator/LunaTranslator/myutils/config.py +++ b/LunaTranslator/LunaTranslator/myutils/config.py @@ -469,10 +469,7 @@ for key in ___: if "DeckName" in globalconfig["ankiconnect"]: deckname = globalconfig["ankiconnect"].pop("DeckName") - if ( - globalconfig["ankiconnect"]["DeckName"] - not in globalconfig["ankiconnect"]["DeckNameS"] - ): + if deckname not in globalconfig["ankiconnect"]["DeckNameS"]: globalconfig["ankiconnect"]["DeckNameS"].append(deckname) for data in savehook_new_data.values():