fix: show players if they're not disabled
This commit is contained in:
parent
fc8592f8ab
commit
19ae4a18ca
@ -150,7 +150,7 @@ async def list_players(team_id: int):
|
|||||||
select(P)
|
select(P)
|
||||||
.join(PlayerTeamLink)
|
.join(PlayerTeamLink)
|
||||||
.join(Team)
|
.join(Team)
|
||||||
.where(Team.id == team_id, P.disabled == False)
|
.where(Team.id == team_id, P.disabled != True)
|
||||||
).all()
|
).all()
|
||||||
if players:
|
if players:
|
||||||
return [
|
return [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user