mirror of
https://github.com/TotalFreedomMC/TotalFreedomBot.git
synced 2024-12-22 07:34:57 +00:00
Update functions.py
This commit is contained in:
parent
f03c91e9e3
commit
b9d91e0aa2
1 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ def get_server_status(server=1):
|
|||
def get_visible_player_count(list_json):
|
||||
total = 0
|
||||
for x in list_json:
|
||||
if type(list_json[x]) == list:
|
||||
if isinstance(list_json[x], list):
|
||||
total += len(list_json[x])
|
||||
|
||||
|
||||
return total
|
||||
|
|
Loading…
Reference in a new issue