From cc092d6ecb16d26ec7841394d24bd188c75a480e Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 9 Apr 2023 16:10:53 -0400 Subject: [PATCH] Fix type error comparrison --- app/classes/web/panel_handler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index 88ffae1d..b9019685 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -268,7 +268,9 @@ class PanelHandler(BaseHandler): break for server in defined_servers: server_ids.append(str(server.server_id)) - if server not in page_servers: + if not any( + item["server_id"] == str(server.server_id) for item in page_servers + ): page_servers.append( DatabaseShortcuts.get_data_obj(server.server_object) )