NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Cleanup timeline entries (#8489)
Nicolas Mowena482160691e2
diff --git a/frigate/timeline.py b/frigate/timeline.pyindex 1acc8d4f85..cca0b24b7a 100644--- a/frigate/timeline.py+++ b/frigate/timeline.py@@ -102,5 +102,11 @@ class TimelineProcessor(threading.Thread):)[0]Timeline.insert(timeline_entry).execute()elif event_type == "end":- timeline_entry[Timeline.class_type] = "gone"- Timeline.insert(timeline_entry).execute()+ if event_data["has_clip"] or event_data["has_snapshot"]:+ timeline_entry[Timeline.class_type] = "gone"+ Timeline.insert(timeline_entry).execute()+ else:+ # if event was not saved then the timeline entries should be deleted+ Timeline.delete().where(+ Timeline.source_id == event_data["id"]+ ).execute()