We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f195db commit 46552b1Copy full SHA for 46552b1
server/routes.py
@@ -13,7 +13,7 @@ def index():
13
14
if name:
15
cursor.execute(
16
- "SELECT * FROM books WHERE name LIKE %s", name
+ "SELECT * FROM books WHERE name LIKE '%" + name + "%'"
17
)
18
books = [Book(*row) for row in cursor]
19
0 commit comments