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]