Make search operators case insensitive.

In light of the fact that all searching against the database is done
using ILIKE pattern matching, the only truly case-sensitive part of
the search query was search operator keys. Rather than lowercase the
keys in `criteria` before returning, we instead lowercase the entire
search string at the beginning of parsing. This will further enforce
case-insensitivity on the design of search going forward.
remotes/1693045480750635534/spooky-22
Snakes 2022-06-21 01:31:31 -04:00
parent e2cd25db67
commit f7a59f4672
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ valid_params=[
]
def searchparse(text):
text = text.lower()
criteria = {x[0]:x[1] for x in query_regex.findall(text)}