mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-17 21:58:22 +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:
parent
722ef6a1fe
commit
a759987cae
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user