Skip to content
Snippets Groups Projects
Commit 12d75f3b authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Merge branch 'dev' into 'master'

search view: implement istartswith operation for build_apropos_filter

Closes #40

See merge request !36
parents 0ece41d2 13faf7bb
No related branches found
No related tags found
1 merge request!36search view: implement istartswith operation for build_apropos_filter
......@@ -90,6 +90,10 @@ def build_apropos_filter(q):
elif operation == "startswith":
op = "~~ %s::text"
value += "%"
elif operation == "istartswith":
op = "~~ lower(%s::text)"
column = f"lower({column})"
value += "%"
else:
raise NotImplementedError(f"Operation {operation} is not implemented for the apropos search.")
# build the filter condition
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment