Update emoji_manager.py

This commit is contained in:
雅诺狐
2025-08-17 13:59:09 +08:00
parent c9b260082c
commit 37684fea51

View File

@@ -444,7 +444,6 @@ class EmojiManager:
Optional[Tuple[str, str]]: (表情包完整文件路径, 表情包描述)如果没有找到则返回None
"""
try:
self.()
_time_start = time.time()
# 获取所有表情包 (从内存缓存中获取)
@@ -691,7 +690,6 @@ class EmojiManager:
"""
try:
with get_db_session() as session:
self.()
if emoji_hash:
query = session.execute(select(Emoji).where(Emoji.emoji_hash == emoji_hash)).scalars().all()
@@ -744,7 +742,6 @@ class EmojiManager:
return emoji.description
# 如果内存中没有,从数据库查找
self.()
try:
with get_db_session() as session:
emoji_record = session.execute(select(Emoji).where(Emoji.emoji_hash == emoji_hash)).scalar_one_or_none()
@@ -771,7 +768,6 @@ class EmojiManager:
bool: 是否成功删除
"""
try:
self.()
# 从emoji_objects中查找表情包对象
emoji = await self.get_emoji_from_manager(emoji_hash)
@@ -811,7 +807,6 @@ class EmojiManager:
bool: 是否成功替换表情包
"""
try:
self.()
# 获取所有表情包对象
emoji_objects = self.emoji_objects