From 651a202dad2d2fb92abb2ee7b7b1051d49a45116 Mon Sep 17 00:00:00 2001 From: Dan Shanahan Date: Fri, 19 May 2023 09:36:40 -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 5dd4f79..814b3d3 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]