refector: 如果超出时间不检查人员未就位

This commit is contained in:
caoqianming 2023-05-25 10:46:31 +08:00
parent 5131daa5cd
commit b338cbc34c
1 changed files with 3 additions and 0 deletions

View File

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