fix: Handles panorama cameras inside statistics

This commit is contained in:
Vincent Mahnke 2026-03-20 19:17:18 +01:00
commit 0a3b543796
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469

View file

@ -76,10 +76,11 @@ if (USE_STATISTICS) {
t.v = 'level_crossing' OR
t.v = 'red_light' OR
t.v = 'speed_camera')) THEN 5
WHEN t.k = 'camera:type' AND t.v = 'panorama' THEN 6
ELSE 0
END
WHERE s.id = ? AND (
(t.k = 'camera:type' AND (t.v = 'fixed' OR t.v = 'panning' OR t.v = 'dome')) OR
(t.k = 'camera:type' AND (t.v = 'fixed' OR t.v = 'panning' OR t.v = 'dome' OR t.v = 'panorama')) OR
(t.k = 'surveillance:type' AND (t.v = 'guard' OR t.v = 'ALPR')) OR
(t.k = 'surveillance' AND (
t.v = 'level_crossing' OR