From 32f47c162b6638a186135ae1267c870233ec21f9 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 02 八月 2023 16:59:36 +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