Fix event entries (#14093)

This commit is contained in:
Nicolas Mowen
2024-10-01 11:07:13 -05:00
committed by GitHub
parent 3cff0df0ce
commit 5b0c1e5b9e
2 changed files with 14 additions and 8 deletions
+3
View File
@@ -125,6 +125,9 @@ class EventProcessor(threading.Thread):
updated_db = False
# if this is the first message, just store it and continue, its not time to insert it in the db
if event_type == EventStateEnum.start:
self.events_in_process[event_data["id"]] = event_data
if should_update_db(self.events_in_process[event_data["id"]], event_data):
updated_db = True
camera_config = self.config.cameras[camera]