From b79f40afbe849f56f7c2db94e9bcebf3f5e92ec6 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 04 八月 2023 09:47:45 +0800 Subject: [PATCH] redis连接池归还 --- code_attribute/code_nature_analyse.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code_attribute/code_nature_analyse.py b/code_attribute/code_nature_analyse.py index 77f7202..9782afd 100644 --- a/code_attribute/code_nature_analyse.py +++ b/code_attribute/code_nature_analyse.py @@ -29,7 +29,7 @@ @classmethod def get_k_format(cls, code): - val = cls.__get_redis().get(f"k_format-{code}") + val = RedisUtils.get(cls.__get_redis(), f"k_format-{code}") if val: return json.loads(val) return None @@ -53,7 +53,7 @@ @classmethod def get_nature(cls, code): - val = cls.__get_redis().get(f"code_nature-{code}") + val = RedisUtils.get(cls.__get_redis(), f"code_nature-{code}") if val: return json.loads(val) return None -- Gitblit v1.8.0