mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix indent causing server ordering to not work
This commit is contained in:
parent
3373d6035c
commit
4a32744211
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user