mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Fix event only datetime check (#8500)
This commit is contained in:
parent
257bd89733
commit
92906a500a
@ -272,7 +272,7 @@ class RecordingMaintainer(threading.Thread):
|
|||||||
)
|
)
|
||||||
retain_cutoff = datetime.datetime.fromtimestamp(
|
retain_cutoff = datetime.datetime.fromtimestamp(
|
||||||
most_recently_processed_frame_time - pre_capture
|
most_recently_processed_frame_time - pre_capture
|
||||||
)
|
).astimezone(datetime.timezone.utc)
|
||||||
if end_time < retain_cutoff:
|
if end_time < retain_cutoff:
|
||||||
Path(cache_path).unlink(missing_ok=True)
|
Path(cache_path).unlink(missing_ok=True)
|
||||||
self.end_time_cache.pop(cache_path, None)
|
self.end_time_cache.pop(cache_path, None)
|
||||||
|
Loading…
Reference in New Issue
Block a user