mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-23 08:38:22 +03:00
comment manual_info["label"].split(": ")[0] for clarity
This commit is contained in:
parent
9d0db214a0
commit
2a0ee1b893
@ -704,6 +704,8 @@ class ReviewSegmentMaintainer(threading.Thread):
|
|||||||
manual_info["label"]
|
manual_info["label"]
|
||||||
)
|
)
|
||||||
if topic == DetectionTypeEnum.api:
|
if topic == DetectionTypeEnum.api:
|
||||||
|
# manual_info["label"] contains 'label: sub_label'
|
||||||
|
# so split out the label without modifying manual_info
|
||||||
if (
|
if (
|
||||||
self.config.cameras[camera].review.detections.enabled
|
self.config.cameras[camera].review.detections.enabled
|
||||||
and manual_info["label"].split(": ")[0]
|
and manual_info["label"].split(": ")[0]
|
||||||
@ -734,6 +736,8 @@ class ReviewSegmentMaintainer(threading.Thread):
|
|||||||
topic == DetectionTypeEnum.api
|
topic == DetectionTypeEnum.api
|
||||||
and self.config.cameras[camera].review.alerts.enabled
|
and self.config.cameras[camera].review.alerts.enabled
|
||||||
):
|
):
|
||||||
|
# manual_info["label"] contains 'label: sub_label'
|
||||||
|
# so split out the label without modifying manual_info
|
||||||
if (
|
if (
|
||||||
not self.config.cameras[
|
not self.config.cameras[
|
||||||
camera
|
camera
|
||||||
@ -816,6 +820,8 @@ class ReviewSegmentMaintainer(threading.Thread):
|
|||||||
)
|
)
|
||||||
elif topic == DetectionTypeEnum.api:
|
elif topic == DetectionTypeEnum.api:
|
||||||
severity = None
|
severity = None
|
||||||
|
# manual_info["label"] contains 'label: sub_label'
|
||||||
|
# so split out the label without modifying manual_info
|
||||||
if (
|
if (
|
||||||
self.config.cameras[camera].review.detections.enabled
|
self.config.cameras[camera].review.detections.enabled
|
||||||
and manual_info["label"].split(": ")[0]
|
and manual_info["label"].split(": ")[0]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user