Skip to content

Commit

Permalink
Fix filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoom-Developer committed Nov 19, 2024
1 parent 0f4f3ed commit 033b969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/interface/rabbit/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ async def users(data: GetUsers) -> RabbitRequestResponse[GetUserResponse]:
"banned": User.is_banned,
"verify": User.verify,
"male": User.male,
"female": not User.male,
"inactive": not User.is_active
"female": User.male == False,
"inactive": User.is_active == False
}
users = await UserRepository().get_all(data.offset, data.limit, filters[data.filter])
total = await UserRepository().count(filters[data.filter])
Expand Down

0 comments on commit 033b969

Please sign in to comment.