From b9d91e0aa2a1cd5a858c33016f599dce0920482d Mon Sep 17 00:00:00 2001 From: Elmon11 Date: Tue, 30 Mar 2021 01:18:19 +0200 Subject: [PATCH] Update functions.py --- functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.py b/functions.py index 2169622..cd9f81f 100644 --- a/functions.py +++ b/functions.py @@ -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