添加数据库提交处理

This commit is contained in:
2025-12-13 21:32:29 +08:00
parent 5797e328d0
commit bb50c1e41b
3 changed files with 27 additions and 38 deletions

View File

@@ -29,6 +29,7 @@ def update_description(emoji_uuid: str, description: str) -> bool:
if affected_rows > 0:
logger.info(f"成功更新表情包描述UUID: {emoji_uuid}")
connection.commit()
return True
else:
logger.warning(f"未找到要更新的表情包UUID: {emoji_uuid}")