From f045c16c4e18ed7d07a81e5dc4a501f411c284ee Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Mon, 13 Nov 2017 21:33:36 +0100 Subject: [PATCH] Fix #386 --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index 4ac10987..d6b983f7 100755 --- a/cps/web.py +++ b/cps/web.py @@ -925,7 +925,7 @@ def get_tags_json(): if request.method == "GET": query = request.args.get('q') # entries = db.session.execute("select name from tags where name like '%" + query + "%'") - entries = db.session.query(db.Tags).filter(db.Tags.iname.ilike("%" + query + "%")).all() + entries = db.session.query(db.Tags).filter(db.Tags.name.ilike("%" + query + "%")).all() # for x in entries: # alfa = dict(name=x.name) json_dumps = json.dumps([dict(name=r.name) for r in entries])