This commit is contained in:
2024-11-11 18:04:50 +08:00
parent a043540cbf
commit a426e6581c

View File

@@ -42,7 +42,7 @@ async def rewrite_image(image_id: int):
with pool.connection() as conn:
with conn.cursor() as cursor:
print('START', image_id, '重建向量')
cursor.execute(f"SELECT content FROM `web_images` WHERE id={image_id}")
cursor.execute(f"SELECT content,article_id FROM `web_images` WHERE id={image_id}")
img = cursor.fetchone()
if img is None:
print('mysql中原始图片不存在:', image_id)