DEBUG
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user