From 0a3b543796267046432d58af6f93564478c2f993 Mon Sep 17 00:00:00 2001 From: Vincent Mahnke Date: Fri, 20 Mar 2026 19:17:18 +0100 Subject: [PATCH] fix: Handles panorama cameras inside statistics --- home/sunders/update_cameras/update_statistics.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/sunders/update_cameras/update_statistics.php b/home/sunders/update_cameras/update_statistics.php index f6bcc7a..e435342 100644 --- a/home/sunders/update_cameras/update_statistics.php +++ b/home/sunders/update_cameras/update_statistics.php @@ -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