|
|
@ -147,7 +147,7 @@ def query(filter_dummy, query):
|
|
|
|
if filter['l'] == 'true':
|
|
|
|
if filter['l'] == 'true':
|
|
|
|
s += '('
|
|
|
|
s += '('
|
|
|
|
for i in range(len(keywords)):
|
|
|
|
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 = s[:-5]
|
|
|
|
s += ') OR '
|
|
|
|
s += ') OR '
|
|
|
|
if filter['p'] == 'true':
|
|
|
|
if filter['p'] == 'true':
|
|
|
|