MultiServer: remove accidental loop from !status
This commit is contained in:
parent
45f92536a6
commit
bcfa5d0a7e
|
@ -567,9 +567,8 @@ def get_players_string(ctx: Context):
|
||||||
return f'{len(auth_clients)} players of {len(ctx.player_names)} connected ' + text[:-1]
|
return f'{len(auth_clients)} players of {len(ctx.player_names)} connected ' + text[:-1]
|
||||||
|
|
||||||
|
|
||||||
def get_status_string(ctx: Context, team):
|
def get_status_string(ctx: Context, team: int):
|
||||||
text = "Player Status on your team:"
|
text = "Player Status on your team:"
|
||||||
for team in ctx.clients:
|
|
||||||
for slot in ctx.locations:
|
for slot in ctx.locations:
|
||||||
connected = len(ctx.clients[team][slot])
|
connected = len(ctx.clients[team][slot])
|
||||||
completion_text = f"({len(ctx.location_checks[team, slot])}/{len(ctx.locations[slot])})"
|
completion_text = f"({len(ctx.location_checks[team, slot])}/{len(ctx.locations[slot])})"
|
||||||
|
|
Loading…
Reference in New Issue