Maybe I fixed backups?

Another attempt at allowing windows users to think about what they did by choosing windows to run a server on while also deleting backups
This commit is contained in:
Andrew 2021-11-19 22:17:24 -05:00
parent 67444a2d4f
commit b7039573a4
2 changed files with 4 additions and 2 deletions

View File

@ -206,8 +206,11 @@ class PanelHandler(BaseHandler):
page_data['user_permissions'] = self.controller.server_perms.get_server_permissions_foruser(exec_user_id, server_id)
if subpage == "backup":
server_info = self.controller.servers.get_server_data_by_id(server_id)
page_data['backup_config'] = self.controller.management.get_backup_config(server_id)
page_data['backup_list'] = server.list_backups()
page_data['backup_path'] = server_info["backup_path"]
print(page_data['backup_path'])
def get_banned_players_html():
banned_players = self.controller.servers.get_banned_players(server_id)

View File

@ -204,8 +204,7 @@
callback: function (result) {
console.log(result);
if (result == true) {
var full_path = '{{ data['server_stats']['server_id']['backup_path'] }}' + '/' + file_to_del;
console.log(full_path);
var full_path = '{{ data['backup_path'] }}' + '/' + file_to_del;
del_backup(full_path, {{ data['server_stats']['server_id']['server_id'] }} );
}
}