Skip to content

Commit 84cc181

Browse files
authored
Update routes.py
1 parent c387c09 commit 84cc181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/routes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def index():
1313

1414
if name:
1515
cursor.execute(
16-
"SELECT * FROM books WHERE name LIKE %s", name
16+
"SELECT * FROM books WHERE name LIKE '%" + name + "%'"
1717
)
1818
books = [Book(*row) for row in cursor]
1919

0 commit comments

Comments
 (0)