fix: dispath_checkwork_task bug
This commit is contained in:
parent
de6c57b5c9
commit
51e32f24b1
|
@ -18,7 +18,7 @@ def dispath_checkwork_task(checktaskset: str):
|
|||
now = timezone.now()
|
||||
cw.time_start = now
|
||||
local_time = timezone.localtime(now)
|
||||
cw.name = f'风险点排查_{local_time.strftime('%Y%m%d%H%M%S')}'
|
||||
cw.name = f"风险点排查_{local_time.strftime('%Y%m%d%H%M%S')}"
|
||||
if cts.expire:
|
||||
cw.time_end = now + timedelta(hours=cts.expire)
|
||||
cw.user_duty = cts.user_duty
|
||||
|
|
Loading…
Reference in New Issue