Fix type error comparrison

This commit is contained in:
Andrew 2023-04-09 16:10:53 -04:00
parent 7d8ade5d5e
commit cc092d6ecb

View File

@ -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)
)