Make this more efficient

This commit is contained in:
Andrew 2023-04-08 20:33:11 -04:00
parent d65f2f7111
commit 7d804afe20

View File

@ -263,8 +263,9 @@ class PanelHandler(BaseHandler):
page_servers.append(
DatabaseShortcuts.get_data_obj(server.server_object)
)
user_order.remove(server_id)
defined_servers.remove(server)
break
for server in defined_servers:
server_ids.append(str(server.server_id))
if server not in page_servers: