Archived
feat: case-insensitive search
This commit is contained in:
1 parent
b32f4465ef
commit
d32e6f2ddb
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -33,7 +33,7 @@ def index(request: HttpRequest):
|
||||
return response
|
||||
else: return HttpResponseBadRequest('Input URL invalid.')
|
||||
elif searchParam:
|
||||
localbooks = [book for book in books if searchParam in book.title]
|
||||
localbooks = [book for book in books if searchParam.lower() in book.title.lower()]
|
||||
|
||||
# paginate items
|
||||
paginationParam = request.GET.get('p', '')
|
||||
|
||||
Reference in new issue
Block a user