fix enable bug in tasks

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

View File

@ -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