From b6d6b9c0a4ddb03cd86424d1f7bf371d224b6639 Mon Sep 17 00:00:00 2001 From: Silversthorn Date: Sun, 17 Jul 2022 10:57:25 +0200 Subject: [PATCH] Remove unused elements and move get_players to py file instead of html file --- app/classes/web/panel_handler.py | 2 -- app/frontend/templates/panel/server_admin_controls.html | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index 7bef913c..321e9e20 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -875,7 +875,6 @@ class PanelHandler(BaseHandler): page_data["schedules"] = HelpersManagement.get_schedules_by_server( server_id ) - page_data["get_players"] = server_obj.get_server_players() page_data["active_link"] = "schedules" page_data["permissions"] = { "Commands": EnumPermissionsServer.COMMANDS, @@ -941,7 +940,6 @@ class PanelHandler(BaseHandler): self.redirect("/panel/error?error=Invalid Schedule ID") return schedule = self.controller.management.get_scheduled_task_model(sch_id) - page_data["get_players"] = server_obj.get_server_players() page_data["active_link"] = "schedules" page_data["permissions"] = { "Commands": EnumPermissionsServer.COMMANDS, diff --git a/app/frontend/templates/panel/server_admin_controls.html b/app/frontend/templates/panel/server_admin_controls.html index 7149bb85..542f2ce7 100644 --- a/app/frontend/templates/panel/server_admin_controls.html +++ b/app/frontend/templates/panel/server_admin_controls.html @@ -73,7 +73,7 @@

{{ translate('serverPlayerManagement', 'players', data['lang']) }}: