From 09f4e35131875afa435849a5c6965dc20d81777e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Tue, 17 Dec 2019 15:04:58 +0100 Subject: [PATCH] Fix boldify condition --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 49331c4..38ca0b5 100644 --- a/app.py +++ b/app.py @@ -17,7 +17,7 @@ def boldify(name): query = request.args.get('q') name = Connector.boldify(name, query) 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]) return name