Fixed location search

This commit is contained in:
2018-11-14 18:40:39 +01:00
parent 582370a17d
commit 0789b3a0d8
+1 -1
View File
@@ -147,7 +147,7 @@ def query(filter_dummy, query):
if filter['l'] == 'true':
s += '('
for i in range(len(keywords)):
s += 'LOWER(l.name) like LOWER(:kw'+ str(i) +') AND '
s += 'LOWER(c.name||l.name) like LOWER(:kw'+ str(i) +') AND '
s = s[:-5]
s += ') OR '
if filter['p'] == 'true':