mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
fix enable bug in tasks
This commit is contained in:
parent
f681e5d69d
commit
b6a10d828e
@ -961,7 +961,7 @@ class PanelHandler(BaseHandler):
|
||||
command = "restart_server"
|
||||
elif action == "backup":
|
||||
command = "backup_server"
|
||||
if bleach.clean(self.get_argument('enabled', '1'))=='1':
|
||||
if bleach.clean(self.get_argument('enabled', '0')) == '1':
|
||||
enabled = True
|
||||
else:
|
||||
enabled = False
|
||||
|
Loading…
Reference in New Issue
Block a user