Fix case-insensitive comparison bug
This commit is contained in:
parent
3e07bed51b
commit
144ae69f5c
|
@ -70,7 +70,7 @@ def list_all():
|
||||||
.filter(or_(*[func.lower(User.username) == name.lower().strip() for name in search.split(" ")])) \
|
.filter(or_(*[func.lower(User.username) == name.lower().strip() for name in search.split(" ")])) \
|
||||||
.all()
|
.all()
|
||||||
|
|
||||||
authors = [(author.username, search.lower().replace(author.username, "")) for author in authors]
|
authors = [(author.username, search.lower().replace(author.username.lower(), "")) for author in authors]
|
||||||
|
|
||||||
topics = None
|
topics = None
|
||||||
if qb.search and not query.has_next:
|
if qb.search and not query.has_next:
|
||||||
|
|
Loading…
Reference in New Issue