mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 09:45:28 +01:00
More reverts from the windows issue.
This commit is contained in:
parent
79190e15f5
commit
67444a2d4f
@ -214,7 +214,7 @@ class AjaxHandler(BaseHandler):
|
|||||||
file_path = self.get_body_argument('file_path', default=None, strip=True)
|
file_path = self.get_body_argument('file_path', default=None, strip=True)
|
||||||
server_id = self.get_argument('id', None)
|
server_id = self.get_argument('id', None)
|
||||||
|
|
||||||
if file_path.contains('/') or file_path('\\'):
|
if os.name == "nt":
|
||||||
file_path = file_path.replace('/', "\\")
|
file_path = file_path.replace('/', "\\")
|
||||||
|
|
||||||
console.warning("delete {} for server {}".format(file_path, server_id))
|
console.warning("delete {} for server {}".format(file_path, server_id))
|
||||||
|
@ -205,6 +205,7 @@
|
|||||||
console.log(result);
|
console.log(result);
|
||||||
if (result == true) {
|
if (result == true) {
|
||||||
var full_path = '{{ data['server_stats']['server_id']['backup_path'] }}' + '/' + file_to_del;
|
var full_path = '{{ data['server_stats']['server_id']['backup_path'] }}' + '/' + file_to_del;
|
||||||
|
console.log(full_path);
|
||||||
del_backup(full_path, {{ data['server_stats']['server_id']['server_id'] }} );
|
del_backup(full_path, {{ data['server_stats']['server_id']['server_id'] }} );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user