Skip to content

Commit

Permalink
Fix event only datetime check (blakeblackshear#8500)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Nov 7, 2023
1 parent 257bd89 commit 92906a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frigate/record/maintainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ async def validate_and_move_segment(
)
retain_cutoff = datetime.datetime.fromtimestamp(
most_recently_processed_frame_time - pre_capture
)
).astimezone(datetime.timezone.utc)
if end_time < retain_cutoff:
Path(cache_path).unlink(missing_ok=True)
self.end_time_cache.pop(cache_path, None)
Expand Down

0 comments on commit 92906a5

Please sign in to comment.