forked from Github/frigate
Cleanup after recordings refactor (#13518)
* Cleanup after recordings refactor * Fix default retention mode * Formatting * Fix review item query * Default review retention
This commit is contained in:
@@ -57,11 +57,7 @@ class ExternalEventProcessor:
|
||||
thumbnail = self._write_images(
|
||||
camera_config, label, event_id, draw, snapshot_frame
|
||||
)
|
||||
end = (
|
||||
now + duration + camera_config.record.events.post_capture
|
||||
if duration is not None
|
||||
else None
|
||||
)
|
||||
end = now + duration if duration is not None else None
|
||||
|
||||
self.event_sender.publish(
|
||||
(
|
||||
@@ -74,7 +70,7 @@ class ExternalEventProcessor:
|
||||
"sub_label": sub_label,
|
||||
"score": score,
|
||||
"camera": camera,
|
||||
"start_time": now - camera_config.record.events.pre_capture,
|
||||
"start_time": now,
|
||||
"end_time": end,
|
||||
"thumbnail": thumbnail,
|
||||
"has_clip": camera_config.record.enabled and include_recording,
|
||||
|
||||
Reference in New Issue
Block a user