refector: 如果超出时间不检查人员未就位
This commit is contained in:
parent
5131daa5cd
commit
b338cbc34c
|
@ -235,6 +235,9 @@ def create_remind(event: Event, params: dict):
|
|||
|
||||
def check_not_in_place(opl: Opl):
|
||||
# 检查作业人员未就位事件(直接创建事件)
|
||||
end_time = opl.end_time
|
||||
if timezone.now() >= end_time: # 如果大于预计结束时间不做检查了
|
||||
return
|
||||
area = opl.operation.area
|
||||
if 'xx_rail' in area.third_info:
|
||||
railId = area.third_info['xx_rail']['id']
|
||||
|
|
Loading…
Reference in New Issue