Skip to content

Commit

Permalink
less messy
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Oct 4, 2021
1 parent 635948b commit 358b38f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chatbridge/impl/online/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def updater(name: str, players: Collection[str]):

counter_sorted = sorted([(key, value) for key, value in counter.items()], key=lambda x: x[0].upper())
player_set_all = set()
result: List[str] = ['Players in {} Minecraft servers:'.format(len(counter_sorted))]
result: List[str] = ['Players in {} Minecraft servers:'.format(len(list(filter(lambda i: i[1], counter_sorted))))]
for server_name, player_set in counter_sorted:
if player_set:
player_set_all.update(player_set)
Expand Down

0 comments on commit 358b38f

Please sign in to comment.