fix: dispath_checkwork_task bug

This commit is contained in:
caoqianming 2024-06-18 17:55:07 +08:00
parent de6c57b5c9
commit 51e32f24b1
1 changed files with 1 additions and 1 deletions

View File

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