From ba52d7ac92a36f413eacaa686f8535e859664ec6 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 28 八月 2023 09:45:11 +0800 Subject: [PATCH] bug修改 --- code_attribute/gpcode_first_screen_manager.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code_attribute/gpcode_first_screen_manager.py b/code_attribute/gpcode_first_screen_manager.py index 71a7f53..8203a35 100644 --- a/code_attribute/gpcode_first_screen_manager.py +++ b/code_attribute/gpcode_first_screen_manager.py @@ -5,9 +5,9 @@ # 璁剧疆棣栨澘鏈瓫閫夌殑鐩爣绁� import json -from db.redis_manager import RedisUtils +from db.redis_manager_delegate import RedisUtils from utils import tool -from db import redis_manager +from db import redis_manager_delegate as redis_manager from third_data import block_info __redisManager = redis_manager.RedisManager(0) @@ -56,7 +56,7 @@ RedisUtils.sadd(redis, "first_no_screen_codes", code, auto_free=False) RedisUtils.expire(redis, "first_no_screen_codes", tool.get_expire(), auto_free=False) finally: - redis.connection_pool.disconnect() + RedisUtils.realse(redis) def clear_first_no_screen_codes(): @@ -70,7 +70,7 @@ for code in codes: RedisUtils.srem(redis, "first_no_screen_codes", code, auto_free= False) finally: - redis.connection_pool.disconnect() + RedisUtils.realse(redis) def __get_first_no_screen_codes(): -- Gitblit v1.8.0