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:
ryzendigo 2026-03-17 06:56:24 +08:00
parent 722ef6a1fe
commit a759987cae

View File

@ -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,