fix: dispatch_checkwork_task自动添加time_end
This commit is contained in:
parent
7f3da29560
commit
63dbc00a12
|
@ -15,8 +15,8 @@ def dispath_checkwork_task(checktaskset: str):
|
|||
cw.name = '风险点检查(自动派发)'
|
||||
now = timezone.now()
|
||||
cw.time_start = now
|
||||
if cts.expire:
|
||||
cw.time_end = now + timedelta(hours=cts.expire)
|
||||
expire_hour = cts.expire if cts.expire else 24
|
||||
cw.time_end = now + timedelta(hours=expire_hour)
|
||||
cw.user_duty = cts.user_duty
|
||||
cw.riskpoint = cts.riskpoint
|
||||
cw.note = cts.note
|
||||
|
|
Loading…
Reference in New Issue