From 60ad38261ba407f31ddd2d3fb6c3b7352e97db84 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 4 Oct 2022 17:49:37 -0600 Subject: [PATCH] Fix sub label access (#4015) * Fix access * Formatting --- frigate/http.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frigate/http.py b/frigate/http.py index dd56486f2..fdf5a1e08 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -237,9 +237,9 @@ def set_sub_label(id): if not event.end_time: tracked_obj: TrackedObject = ( - current_app.detected_frames_processor.camera_states[event.camera].get( - event.id - ) + current_app.detected_frames_processor.camera_states[ + event.camera + ].tracked_objects.get(event.id) ) if tracked_obj: