feat:修复了action变更,修改了默认配置,提升版本号

This commit is contained in:
SengokuCola
2025-05-27 12:41:23 +08:00
parent 57c9dacb99
commit 890a7b6505
19 changed files with 163 additions and 90 deletions

View File

@@ -83,7 +83,7 @@ class ImageManager:
current_timestamp = time.time()
defaults = {"description": description, "timestamp": current_timestamp}
desc_obj, created = ImageDescriptions.get_or_create(
hash=image_hash, type=description_type, defaults=defaults
image_description_hash=image_hash, type=description_type, defaults=defaults
)
if not created: # 如果记录已存在,则更新
desc_obj.description = description
@@ -150,7 +150,7 @@ class ImageManager:
img_obj.save()
except Images.DoesNotExist:
Images.create(
hash=image_hash,
emoji_hash=image_hash,
path=file_path,
type="emoji",
description=description,
@@ -223,7 +223,7 @@ class ImageManager:
img_obj.save()
except Images.DoesNotExist:
Images.create(
hash=image_hash,
emoji_hash=image_hash,
path=file_path,
type="image",
description=description,