Skip to content

Commit

Permalink
Handle case where user has multiple manual events on same camera
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Jan 11, 2025
1 parent c4727f1 commit cccc449
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frigate/review/maintainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,9 @@ def run(self) -> None:

if event_id in self.indefinite_events[camera]:
self.indefinite_events[camera].pop(event_id)
current_segment.last_update = manual_info["end_time"]

if len(self.indefinite_events[camera]) == 0:
current_segment.last_update = manual_info["end_time"]
else:
logger.error(
f"Event with ID {event_id} has a set duration and can not be ended manually."
Expand Down

0 comments on commit cccc449

Please sign in to comment.