feat: case-insensitive search

This commit is contained in:
eneller
2025-04-13 12:42:57 +02:00
parent b32f4465ef
commit d32e6f2ddb
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
[project]
name = "epub2go-py-web"
version = "2.0"
version = "2.1"
description = "Web Interface to epub2go.py"
readme = "README.md"
requires-python = ">=3.12"

View File

@@ -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', '')