quick db fix (#9946)

This commit is contained in:
Nicolas Mowen 2024-02-20 18:53:56 -07:00 committed by GitHub
parent 940be5dc6f
commit e608297c31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -172,7 +172,7 @@ class ReviewSegmentMaintainer(threading.Thread):
segment.objects.add(object["label"]) segment.objects.add(object["label"])
if object["sub_label"]: if object["sub_label"]:
segment.sub_labels.add(object["sub_label"]) segment.sub_labels.add(object["sub_label"][0])
# if object is alert label and has qualified for recording # if object is alert label and has qualified for recording
# mark this review as alert # mark this review as alert
@ -213,7 +213,7 @@ class ReviewSegmentMaintainer(threading.Thread):
has_sig_object = False has_sig_object = False
detections: set = set() detections: set = set()
objects: set = set() objects: set = set()
sub_labels: set = (set(),) sub_labels: set = set()
zones: set = set() zones: set = set()
for object in active_objects: for object in active_objects:
@ -228,7 +228,7 @@ class ReviewSegmentMaintainer(threading.Thread):
objects.add(object["label"]) objects.add(object["label"])
if object["sub_label"]: if object["sub_label"]:
sub_labels.add(object["sub_label"]) sub_labels.add(object["sub_label"][0])
zones.update(object["current_zones"]) zones.update(object["current_zones"])