mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-26 01:50:31 +00:00
Fix #386
This commit is contained in:
parent
01d0083fe6
commit
f045c16c4e
@ -925,7 +925,7 @@ def get_tags_json():
|
|||||||
if request.method == "GET":
|
if request.method == "GET":
|
||||||
query = request.args.get('q')
|
query = request.args.get('q')
|
||||||
# entries = db.session.execute("select name from tags where name like '%" + query + "%'")
|
# 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:
|
# for x in entries:
|
||||||
# alfa = dict(name=x.name)
|
# alfa = dict(name=x.name)
|
||||||
json_dumps = json.dumps([dict(name=r.name) for r in entries])
|
json_dumps = json.dumps([dict(name=r.name) for r in entries])
|
||||||
|
Loading…
Reference in New Issue
Block a user