Skip to content

Commit

Permalink
Fix sub label access (blakeblackshear#4015)
Browse files Browse the repository at this point in the history
* Fix access

* Formatting
  • Loading branch information
NickM-27 committed Oct 4, 2022
1 parent c02100e commit 60ad382
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frigate/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 60ad382

Please sign in to comment.