From 4a327442119c6dd5734cb67dec75534850686a94 Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Thu, 3 Mar 2022 22:22:05 -0500 Subject: [PATCH] Fix indent causing server ordering to not work --- app/classes/web/panel_handler.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index 3f06457b..3ca69a4f 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -346,14 +346,14 @@ class PanelHandler(BaseHandler): if flag == 0: server['stats']['downloading'] = self.controller.servers.get_download_status( str(server['stats']['server_id']['server_id'])) - server['stats']['crashed'] = self.controller.servers.is_crashed( - str(server['stats']['server_id']['server_id'])) - try: - server['stats']['waiting_start'] = self.controller.servers.get_waiting_start( - str(server['stats']['server_id']['server_id'])) - except Exception as e: - logger.error(f"Failed to get server waiting to start: {e}") - server['stats']['waiting_start'] = False + server['stats']['crashed'] = self.controller.servers.is_crashed( + str(server['stats']['server_id']['server_id'])) + try: + server['stats']['waiting_start'] = self.controller.servers.get_waiting_start( + str(server['stats']['server_id']['server_id'])) + except Exception as e: + logger.error(f"Failed to get server waiting to start: {e}") + server['stats']['waiting_start'] = False if str(server['server_data']['server_id']) == str(server_id): page_servers.append(server)