Update functions.py

This commit is contained in:
Elmon11 2021-03-30 01:18:19 +02:00 committed by GitHub
parent f03c91e9e3
commit b9d91e0aa2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,7 +119,7 @@ def get_server_status(server=1):
def get_visible_player_count(list_json): def get_visible_player_count(list_json):
total = 0 total = 0
for x in list_json: for x in list_json:
if type(list_json[x]) == list: if isinstance(list_json[x], list):
total += len(list_json[x]) total += len(list_json[x])
return total return total