From c11958a99bdfd4b32398002d5798072c12ce7536 Mon Sep 17 00:00:00 2001 From: Dan Shanahan Date: Tue, 16 May 2023 12:46:52 -0700 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 1f9dfa0..c16d488 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]