Fix crash lower()

This commit is contained in:
Michel Roux 2019-12-17 15:12:02 +01:00
parent 09f4e35131
commit 964ad2f644

2
app.py
View File

@ -14,7 +14,7 @@ def verify_password(username, password):
@app.template_filter('boldify')
def boldify(name):
query = request.args.get('q')
query = request.args.get('q', '')
name = Connector.boldify(name, query)
for keyword in db.session.query(AnimeTitle.keyword.distinct()).all():
if keyword[0].lower() != query.lower():