diff --git a/web/handlers/task_multi.py b/web/handlers/task_multi.py index 71cf70417ef..3e73515c67e 100644 --- a/web/handlers/task_multi.py +++ b/web/handlers/task_multi.py @@ -103,7 +103,7 @@ async def post(self, userid): 'cron_val': time_env['cron_val'], } - if time_env['randtimezone1'] != '': + if time_env['randtimezone1']: settime_env['randsw'] = True # if time_env['cron_sec'] != '': # settime_env['cron_sec'] = time_env['cron_sec'] diff --git a/web/tpl/taskmulti.html b/web/tpl/taskmulti.html index f0bed2a9213..3a3ac7742b2 100644 --- a/web/tpl/taskmulti.html +++ b/web/tpl/taskmulti.html @@ -139,8 +139,8 @@