提交 8734a466 authored 作者: zw.wang's avatar zw.wang

fix: [eviz-recorder] 修复对已经解绑的摄像头的事件合并

上级 e888e357
...@@ -112,7 +112,7 @@ def merger_events(camera_code, files): ...@@ -112,7 +112,7 @@ def merger_events(camera_code, files):
log.exception(e) log.exception(e)
return return
if not camera: if not camera or camera.get('biz_type') is None:
log.warning('摄像头%s已经被删除,将删除该摄像头的所有视频!', camera_code) log.warning('摄像头%s已经被删除,将删除该摄像头的所有视频!', camera_code)
for video_file in all_pre_files: for video_file in all_pre_files:
if os.path.isfile(video_file.full_path): if os.path.isfile(video_file.full_path):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论