From 7d804afe20f3600978c95b6fcadd58ac79026896 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 8 Apr 2023 20:33:11 -0400 Subject: [PATCH] Make this more efficient --- app/classes/web/panel_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index e2b2c870..996a7d23 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -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: