优化内容

This commit is contained in:
liuwei
2025-04-22 17:56:47 +08:00
parent 2e4a426dcf
commit 3318e175a2
4 changed files with 13 additions and 10 deletions

View File

@@ -11,7 +11,6 @@ from typing import List, Dict, Optional, Union, Any
from db.base import BaseDBOperator
from db.connection import DBConnectionManager
logger = logging.getLogger(__name__)
class ContactsDBOperator(BaseDBOperator):
@@ -19,7 +18,7 @@ class ContactsDBOperator(BaseDBOperator):
def __init__(self, db_manager: DBConnectionManager):
super().__init__(db_manager)
self.logger = logging.getLogger(__name__)
def _ensure_table_exists(self):
"""确保联系人表存在"""

View File

@@ -14,7 +14,7 @@ class KidPhotoRedisDB:
def __init__(self, db_manager: DBConnectionManager):
self.db_manager = db_manager
self.prefix = "group:kid_photo:"
self.logger = logging.getLogger("DB.KidPhotoRedis")
logger = logging.getLogger("DB.KidPhotoRedis")
def get_redis_connection(self):
"""获取Redis连接"""