fix(cache): 修复 _load_rois_from_db 未加载 working_hours 字段的问题
Some checks failed
Python Test / test (push) Has been cancelled

- 在 roi_config 中补充读取数据库中的 working_hours 字段
- 确保 pipeline 能将 ROI 特定的工作时间配置正确传递给算法
- 修复后,LeavePostAlgorithm.is_in_working_hours() 将使用 ROI 配置而非全局默认值
This commit is contained in:
2026-01-22 18:26:57 +08:00
parent 44b6c70a4b
commit 98c741cb2b
3 changed files with 213 additions and 57 deletions

View File

@@ -70,8 +70,7 @@ algorithms:
confirm_sec: 10 # 上岗确认时间10秒
return_sec: 30 # 离岗缓冲时间30秒
intrusion:
check_interval_sec: 1.0 # 检测间隔
direction_sensitive: false # 方向敏感
cooldown_seconds: 300 # 入侵检测冷却时间(秒)
# 日志配置
logging: