Fix double bold

This commit is contained in:
Michel Roux 2019-12-15 18:38:09 +01:00
parent 91f151b9b7
commit dce9c4838a

2
app.py
View File

@ -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 title in AnimeTitle.query.all(): for title in AnimeTitle.query.all():
if title.keyword is not query: if title.keyword != query:
name = Connector.boldify(name, title.keyword) name = Connector.boldify(name, title.keyword)
return name return name