mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
quick db fix (#9946)
This commit is contained in:
parent
940be5dc6f
commit
e608297c31
@ -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"])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user