Fix sub label access (#4015)

* Fix access

* Formatting
This commit is contained in:
Nicolas Mowen 2022-10-04 17:49:37 -06:00 committed by GitHub
parent c02100ee6f
commit 60ad38261b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: