Fix boldify condition
This commit is contained in:
parent
b3364d17bf
commit
09f4e35131
2
app.py
2
app.py
@ -17,7 +17,7 @@ def boldify(name):
|
|||||||
query = request.args.get('q')
|
query = request.args.get('q')
|
||||||
name = Connector.boldify(name, query)
|
name = Connector.boldify(name, query)
|
||||||
for keyword in db.session.query(AnimeTitle.keyword.distinct()).all():
|
for keyword in db.session.query(AnimeTitle.keyword.distinct()).all():
|
||||||
if keyword[0] is not query:
|
if keyword[0].lower() != query.lower():
|
||||||
name = Connector.boldify(name, keyword[0])
|
name = Connector.boldify(name, keyword[0])
|
||||||
return name
|
return name
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user