Skip to content

Commit

Permalink
Fix user search not working
Browse files Browse the repository at this point in the history
  • Loading branch information
razzeee committed Nov 10, 2024
1 parent a30cae9 commit fcecb7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ def all(

if filterString is not None:
query = (
query.filter(FlathubUser.display_name.ilike(f"%{filterString}%"))
.join(
query.join(
GithubAccount,
or_(
FlathubUser.display_name.ilike(f"%{filterString}%"),
GithubAccount.login.ilike(f"%{filterString}%"),
GithubAccount.display_name.ilike(f"%{filterString}%"),
GithubAccount.email.ilike(f"%{filterString}%"),
Expand Down

0 comments on commit fcecb7d

Please sign in to comment.