Send sub label correctly

This commit is contained in:
Nicolas Mowen 2024-04-30 15:53:46 -06:00
parent ccd9826325
commit a43344a5af

View File

@ -742,9 +742,12 @@ class CameraState:
if ( if (
obj.obj_data.get("sub_label") obj.obj_data.get("sub_label")
and obj.obj_data.get("sub_label")[0] in ALL_ATTRIBUTE_LABELS
): ):
label = obj.obj_data["sub_label"] if obj.obj_data.get("sub_label")[0] in ALL_ATTRIBUTE_LABELS:
label = obj.obj_data["sub_label"][0]
else:
label = f"{object_type}-verified"
camera_activity["objects"].append( camera_activity["objects"].append(
{"id": obj.obj_data["id"], "label": label, "stationary": not active} {"id": obj.obj_data["id"], "label": label, "stationary": not active}