ruff,私聊视为提及了bot

This commit is contained in:
Windpicker-owo
2025-09-20 22:34:22 +08:00
parent 006f9130b9
commit 444f1ca315
76 changed files with 1066 additions and 882 deletions

View File

@@ -37,7 +37,7 @@ def replace_user_references_sync(
"""
if not content:
return ""
if name_resolver is None:
person_info_manager = get_person_info_manager()
@@ -821,7 +821,7 @@ def build_pic_mapping_info(pic_id_mapping: Dict[str, str]) -> str:
try:
with get_db_session() as session:
image = session.execute(select(Images).where(Images.image_id == pic_id)).scalar_one_or_none()
if image and image.description: # type: ignore
if image and image.description: # type: ignore
description = image.description
except Exception:
# 如果查询失败,保持默认描述