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:
Nicolas Mowen
2024-09-03 08:49:50 -06:00
committed by GitHub
parent 21a50cc452
commit e66f47bdf6
3 changed files with 30 additions and 19 deletions

View File

@@ -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,