From 0789b3a0d85e363e499a90647050530bd0b42663 Mon Sep 17 00:00:00 2001 From: Davide Bongiovanni Date: Wed, 14 Nov 2018 18:40:39 +0100 Subject: [PATCH] Fixed location search --- parts/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parts/server.py b/parts/server.py index eb76826..caa9e4a 100644 --- a/parts/server.py +++ b/parts/server.py @@ -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':