From c52d9de8d01af9cf9f3667408fec61b2f795566d Mon Sep 17 00:00:00 2001 From: ELI-student001 Date: Thu, 11 Sep 2025 16:59:26 +0900 Subject: [PATCH] Update routes.py --- server/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes.py b/server/routes.py index c9f745f..9e9b942 100644 --- a/server/routes.py +++ b/server/routes.py @@ -13,7 +13,7 @@ def index(): if name: cursor.execute( - "SELECT * FROM books WHERE name LIKE %s", name + "SELECT * FROM books WHERE name LIKE '%" + name + "%'" ) books = [Book(*row) for row in cursor]