From a426e6581c340192969a4d8070b234f9a95ff567 Mon Sep 17 00:00:00 2001 From: satori Date: Mon, 11 Nov 2024 18:04:50 +0800 Subject: [PATCH] DEBUG --- routers/reverse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/reverse.py b/routers/reverse.py index 2c04fec..8731141 100644 --- a/routers/reverse.py +++ b/routers/reverse.py @@ -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)