From 917bf461fe57b36a152c76e179e4f5a43f902069 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 03 一月 2024 16:43:09 +0800 Subject: [PATCH] 开盘啦概念特殊词过滤 --- third_data/kpl_api.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/third_data/kpl_api.py b/third_data/kpl_api.py index 9a0f7c5..c4744f1 100644 --- a/third_data/kpl_api.py +++ b/third_data/kpl_api.py @@ -184,7 +184,7 @@ result = json.loads(result) if result: if "List" in result: - names = [x["CName"].replace("姒傚康", "") for x in result["List"]] + names = [kpl_util.filter_block(x["CName"]) for x in result["List"]] return names return [] @@ -196,7 +196,7 @@ result = json.loads(result) if result: if "List" in result: - names = [x["CName"].replace("姒傚康", "") for x in result["List"]] + names = [kpl_util.filter_block(x["CName"]) for x in result["List"]] return names return [] -- Gitblit v1.8.0