From c74530b041dd2a798041e88c7b3fa45b17aae5a5 Mon Sep 17 00:00:00 2001 From: projectdx Date: Mon, 22 Aug 2022 16:55:30 +0900 Subject: [PATCH] =?UTF-8?q?=EC=95=A0=EB=8B=88=EB=9D=BC=EC=9D=B4=ED=94=84?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80=20=EB=B0=8F=20=EC=95=A0=EB=8B=8824=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logic_ohli24.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/logic_ohli24.py b/logic_ohli24.py index 6259855..b5e698b 100644 --- a/logic_ohli24.py +++ b/logic_ohli24.py @@ -261,10 +261,14 @@ class LogicOhli24(LogicModuleBase): print(code) whitelist_program = P.ModelSetting.get("ohli24_auto_code_list") + # whitelist_programs = [ + # str(x.strip().replace(" ", "")) + # for x in whitelist_program.replace("\n", "|").split("|") + # ] whitelist_programs = [ - str(x.strip().replace(" ", "")) - for x in whitelist_program.replace("\n", "|").split("|") + str(x.strip()) for x in whitelist_program.replace("\n", "|").split("|") ] + if code not in whitelist_programs: whitelist_programs.append(code) whitelist_programs = filter(