🤖 自动格式化代码 [skip ci]

This commit is contained in:
github-actions[bot]
2025-06-14 13:17:53 +00:00
parent 751a46da7b
commit d9ac3f0bb4
3 changed files with 70 additions and 87 deletions

View File

@@ -382,9 +382,14 @@ class ImageManager:
if existing_image:
# 检查是否缺少必要字段,如果缺少则创建新记录
if (not hasattr(existing_image, 'image_id') or not existing_image.image_id or
not hasattr(existing_image, 'count') or existing_image.count is None or
not hasattr(existing_image, 'vlm_processed') or existing_image.vlm_processed is None):
if (
not hasattr(existing_image, "image_id")
or not existing_image.image_id
or not hasattr(existing_image, "count")
or existing_image.count is None
or not hasattr(existing_image, "vlm_processed")
or existing_image.vlm_processed is None
):
logger.debug(f"图片记录缺少必要字段,补全旧记录: {image_hash}")
image_id = str(uuid.uuid4())
else: