Skip to content

Commit

Permalink
somefix again
Browse files Browse the repository at this point in the history
  • Loading branch information
Furrior committed Mar 1, 2025
1 parent a91da27 commit 6fa688c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routes/v1/whitelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ async def get_whitelists(session: SessionDep,
selection = select(Whitelist).join(
Player, Player.id == Whitelist.player_id) # type: ignore

admin = await get_player_by_discord_id(session, admin_discord_id)
admin = await get_player_by_discord_id(session, admin_discord_id) if admin_discord_id is not None else None

selection = filter_whitelists(
selection, ckey, discord_id, admin.id, server_type, active_only)
selection, ckey, discord_id, admin.id if admin is not None else None, server_type, active_only)

return paginate_selection(session, selection, request, page, page_size)

Expand Down

0 comments on commit 6fa688c

Please sign in to comment.