mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 09:33:44 +01:00
Make search case-insensitive by using ilike
This commit is contained in:
parent
d6790903a6
commit
179d0be933
@ -51,7 +51,7 @@ def packages_page():
|
||||
|
||||
search = request.args.get("q")
|
||||
if search is not None:
|
||||
query = query.filter(Package.title.contains(search))
|
||||
query = query.filter(Package.title.ilike('%' + search + '%'))
|
||||
|
||||
if shouldReturnJson():
|
||||
pkgs = [package.getAsDictionary(app.config["BASE_URL"]) \
|
||||
|
Loading…
Reference in New Issue
Block a user