修复无法更改图片的问题
This commit is contained in:
@ -320,7 +320,7 @@ def create_admin_commands():
|
||||
if image is not None and image.url is not None:
|
||||
b = await download_image_bytes(image.url)
|
||||
image_manager.remove_puzzle_image(p.img_name)
|
||||
image_manager.upload_puzzle_image(b.unwrap())
|
||||
p.img_name = image_manager.upload_puzzle_image(b.unwrap())
|
||||
elif remove_image.available:
|
||||
image_manager.remove_puzzle_image(p.img_name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user