From 82eb5b46f23d4a08662011d81dbe51804cc2d7f9 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sun, 24 Aug 2025 10:54:17 +0100 Subject: [PATCH] Update REGEXP to include 'R' in col_call filter Expanded the REGEXP pattern in SQL queries to include '/R' suffix when filtering and grouping col_call values. This ensures callsigns ending with '/R' are handled consistently with other suffixes. --- application/models/Mostworked_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Mostworked_model.php b/application/models/Mostworked_model.php index fc66f525..96af9cab 100644 --- a/application/models/Mostworked_model.php +++ b/application/models/Mostworked_model.php @@ -28,7 +28,7 @@ class Mostworked_model extends CI_Model $sql = "SELECT CASE - WHEN col_call REGEXP '/[PMAQLB]$|/MM$|/AM$|/QRP$|/LH$|/BCN$' THEN + WHEN col_call REGEXP '/[PMAQLBR]$|/MM$|/AM$|/QRP$|/LH$|/BCN$' THEN SUBSTRING(col_call, 1, LOCATE('/', col_call) - 1) ELSE col_call @@ -70,7 +70,7 @@ class Mostworked_model extends CI_Model } $sql .= " GROUP BY CASE - WHEN col_call REGEXP '/[PMAQLB]$|/MM$|/AM$|/QRP$|/LH$|/BCN$' THEN + WHEN col_call REGEXP '/[PMAQLBR]$|/MM$|/AM$|/QRP$|/LH$|/BCN$' THEN SUBSTRING(col_call, 1, LOCATE('/', col_call) - 1) ELSE col_call