From 51e32f24b1f3b60eadc554c23f3e07706bd375d0 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 18 Jun 2024 17:55:07 +0800 Subject: [PATCH] fix: dispath_checkwork_task bug --- apps/dpm/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dpm/tasks.py b/apps/dpm/tasks.py index 33c368d8..044b8a84 100644 --- a/apps/dpm/tasks.py +++ b/apps/dpm/tasks.py @@ -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