fixing enabled bug in tasks for editing tasks

This commit is contained in:
Andrew 2022-01-11 19:20:26 -05:00
parent b6a10d828e
commit e63966e7e6

View File

@ -1077,7 +1077,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