feat: case-insensitive search
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "epub2go-py-web"
|
name = "epub2go-py-web"
|
||||||
version = "2.0"
|
version = "2.1"
|
||||||
description = "Web Interface to epub2go.py"
|
description = "Web Interface to epub2go.py"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ def index(request: HttpRequest):
|
|||||||
return response
|
return response
|
||||||
else: return HttpResponseBadRequest('Input URL invalid.')
|
else: return HttpResponseBadRequest('Input URL invalid.')
|
||||||
elif searchParam:
|
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
|
# paginate items
|
||||||
paginationParam = request.GET.get('p', '')
|
paginationParam = request.GET.get('p', '')
|
||||||
|
|||||||
Reference in New Issue
Block a user