mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-19 14:48:22 +03:00
* fix: operator precedence bug in detection type check The condition: topic == DetectionTypeEnum.api.value or DetectionTypeEnum.lpr.value evaluates as: (topic == DetectionTypeEnum.api.value) or (DetectionTypeEnum.lpr.value) Since DetectionTypeEnum.lpr.value is a non-empty string (truthy), the second operand is always True regardless of topic. The intended check is whether topic matches either enum value: topic == DetectionTypeEnum.api.value or topic == DetectionTypeEnum.lpr.value * fix: apply same or operator fix to review/maintainer.py Same issue as record/maintainer.py — the condition was always true because the bare enum value is truthy. * style: ruff format record/maintainer.py |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| cleanup.py | ||
| export.py | ||
| maintainer.py | ||
| record.py | ||