Backend and webui fixes (#11309)

* Ensure that items without end times are set to not have a snapshot

* Save full frame if no frame is currently saved

* Webui fixes

* Cleanup
This commit is contained in:
Nicolas Mowen
2024-05-09 08:20:33 -05:00
committed by GitHub
parent 4bcbf7435a
commit 4216d08099
4 changed files with 39 additions and 5 deletions
+3 -3
View File
@@ -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()