mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-20 18:59:01 +03:00
fix: correct or operator in review maintainer topic dispatch
The condition evaluates as (topic == api.value) or (lpr.value), where the second operand is always truthy. This causes the elif branch to execute for any topic that falls through the earlier conditions, leading to incorrect tuple unpacking. Same pattern as the fix applied in record/maintainer.py.
This commit is contained in:
@@ -642,7 +642,7 @@ class ReviewSegmentMaintainer(threading.Thread):
|
||||
_,
|
||||
audio_detections,
|
||||
) = data
|
||||
elif topic == DetectionTypeEnum.api.value or DetectionTypeEnum.lpr.value:
|
||||
elif topic == DetectionTypeEnum.api.value or topic == DetectionTypeEnum.lpr.value:
|
||||
(
|
||||
camera,
|
||||
frame_time,
|
||||
|
||||
Reference in New Issue
Block a user