diff --git a/app/views/packages/__init__.py b/app/views/packages/__init__.py index 6cb06d84..30b1f90c 100644 --- a/app/views/packages/__init__.py +++ b/app/views/packages/__init__.py @@ -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"]) \