This commit is contained in:
Nicolas Mowen 2025-08-31 07:21:01 -06:00
parent 556df018a8
commit 8efdcb89a0

View File

@ -659,15 +659,13 @@ class ReviewSegmentMaintainer(threading.Thread):
): ):
current_segment.audio.add(audio) current_segment.audio.add(audio)
current_segment.severity = SeverityEnum.alert current_segment.severity = SeverityEnum.alert
current_segment.update_time(frame_time, SeverityEnum.alert) current_segment.last_alert_time = frame_time
elif ( elif (
camera_config.review.detections.labels is None camera_config.review.detections.labels is None
or audio in camera_config.review.detections.labels or audio in camera_config.review.detections.labels
) and camera_config.review.detections.enabled: ) and camera_config.review.detections.enabled:
current_segment.audio.add(audio) current_segment.audio.add(audio)
current_segment.update_time( current_segment.last_detection_time = frame_time
frame_time, SeverityEnum.detection
)
elif topic == DetectionTypeEnum.api or topic == DetectionTypeEnum.lpr: elif topic == DetectionTypeEnum.api or topic == DetectionTypeEnum.lpr:
if manual_info["state"] == ManualEventState.complete: if manual_info["state"] == ManualEventState.complete:
current_segment.detections[manual_info["event_id"]] = ( current_segment.detections[manual_info["event_id"]] = (