]> git.lizzy.rs Git - cheatdb.git/commitdiff
Fix case-insensitive comparison bug
authorrubenwardy <rw@rubenwardy.com>
Sat, 28 Mar 2020 18:15:15 +0000 (18:15 +0000)
committerrubenwardy <rw@rubenwardy.com>
Sat, 28 Mar 2020 18:15:15 +0000 (18:15 +0000)
app/blueprints/packages/packages.py

index 99f715beb275ae88aeea094580e3873b05d19211..a7d5793c1ecbbe3c06656726e2efd707bce98080 100644 (file)
@@ -70,7 +70,7 @@ def list_all():
                        .filter(or_(*[func.lower(User.username) == name.lower().strip() for name in search.split(" ")])) \
                        .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
        if qb.search and not query.has_next: