forked from Github/frigate
Attribute scores (#7100)
* rework attributes to get scores * show sublabel score * formatting
This commit is contained in:
@@ -199,7 +199,8 @@ class EventProcessor(threading.Thread):
|
||||
|
||||
# only overwrite the sub_label in the database if it's set
|
||||
if event_data.get("sub_label") is not None:
|
||||
event[Event.sub_label] = event_data["sub_label"]
|
||||
event[Event.sub_label] = event_data["sub_label"][0]
|
||||
event[Event.data]["sub_label_score"] = event_data["sub_label"][1]
|
||||
|
||||
(
|
||||
Event.insert(event)
|
||||
|
||||
Reference in New Issue
Block a user