From 178aba63dd0c1d4d4f63e33e992123969cdfb31c Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 23 May 2023 18:21:04 -0400 Subject: [PATCH 1/5] Send empty json for no banned/cached players --- app/classes/controllers/servers_controller.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/classes/controllers/servers_controller.py b/app/classes/controllers/servers_controller.py index b7c10ed8..ca6c8d22 100644 --- a/app/classes/controllers/servers_controller.py +++ b/app/classes/controllers/servers_controller.py @@ -529,8 +529,8 @@ class ServersController(metaclass=Singleton): content = file.read() file.close() except Exception as ex: - print(ex) - return None + logger.error(ex) + return {} return json.loads(content) @@ -548,8 +548,8 @@ class ServersController(metaclass=Singleton): content = file.read() file.close() except Exception as ex: - print(ex) - return None + logger.error(ex) + return {} return json.loads(content) From 898744c39e2c7e0429fa3c1e8ede300c30c352cd Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 23 May 2023 19:56:41 -0400 Subject: [PATCH 2/5] Remove old server commands Fix spelling --- .../templates/panel/parts/server_players.html | 2 +- .../panel/server_admin_controls.html | 63 ------------------- 2 files changed, 1 insertion(+), 64 deletions(-) diff --git a/app/frontend/templates/panel/parts/server_players.html b/app/frontend/templates/panel/parts/server_players.html index 3ecc5efb..fd014018 100644 --- a/app/frontend/templates/panel/parts/server_players.html +++ b/app/frontend/templates/panel/parts/server_players.html @@ -17,7 +17,7 @@ {% if player['status'] == 'online' %} {{ player['status'] }} {% elif player['status'] == 'offline' %} - Last connexion : {{ player['last_seen'] }} + Last connection : {{ player['last_seen'] }} {% end %} {% if data['server_stats']['running'] %} diff --git a/app/frontend/templates/panel/server_admin_controls.html b/app/frontend/templates/panel/server_admin_controls.html index 486139c5..b7b8d5a2 100644 --- a/app/frontend/templates/panel/server_admin_controls.html +++ b/app/frontend/templates/panel/server_admin_controls.html @@ -45,69 +45,6 @@
-
- -
- -

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

-
    - {% for player in data['get_players'] %} -
  • -

    {{ player }}

    -
    - - - - -
    -
  • - {% end %} -
-
-
-

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

-
    -
  • -

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

    -
  • - -
-
-
- From a6d30d7242e523d4861b40d3eb6b5327c0b5cfc8 Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 25 May 2023 00:23:15 -0400 Subject: [PATCH 3/5] Fix upload root files being hidden --- app/frontend/templates/server/wizard.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/frontend/templates/server/wizard.html b/app/frontend/templates/server/wizard.html index 4d3e20fb..ec251739 100644 --- a/app/frontend/templates/server/wizard.html +++ b/app/frontend/templates/server/wizard.html @@ -553,6 +553,7 @@
+ -