mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 05:35:25 +03:00
Ensure that items without end times are set to not have a snapshot
This commit is contained in:
parent
2be15b6c01
commit
2d2b377a63
@ -683,9 +683,9 @@ class FrigateApp:
|
||||
self.stop_event.set()
|
||||
|
||||
# set an end_time on entries without an end_time before exiting
|
||||
Event.update(end_time=datetime.datetime.now().timestamp()).where(
|
||||
Event.end_time == None
|
||||
).execute()
|
||||
Event.update(
|
||||
end_time=datetime.datetime.now().timestamp(), has_snapshot=False
|
||||
).where(Event.end_time == None).execute()
|
||||
ReviewSegment.update(end_time=datetime.datetime.now().timestamp()).where(
|
||||
ReviewSegment.end_time == None
|
||||
).execute()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user