mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-19 19:06:16 +01:00
Don't overwrite event while cleaning up expired cameras (#8320)
This commit is contained in:
parent
1a9e00ee49
commit
cf2b56613f
@ -98,8 +98,8 @@ class EventCleanup(threading.Thread):
|
||||
.iterator()
|
||||
)
|
||||
# delete the media from disk
|
||||
for event in expired_events:
|
||||
media_name = f"{event.camera}-{event.id}"
|
||||
for expired in expired_events:
|
||||
media_name = f"{expired.camera}-{expired.id}"
|
||||
media_path = Path(
|
||||
f"{os.path.join(CLIPS_DIR, media_name)}.{file_extension}"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user