From 338b28a6415932861699a27019051dec8c382c70 Mon Sep 17 00:00:00 2001 From: int2001 Date: Thu, 30 Nov 2023 09:54:03 +0000 Subject: [PATCH] Activated Grids were calculated by whole instance QSOs, not by owner --- application/models/Activated_gridmap_model.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/models/Activated_gridmap_model.php b/application/models/Activated_gridmap_model.php index e2af78d3..febbc31a 100644 --- a/application/models/Activated_gridmap_model.php +++ b/application/models/Activated_gridmap_model.php @@ -15,7 +15,8 @@ class Activated_gridmap_model extends CI_Model { $sql = 'SELECT DISTINCT station_gridsquare AS GRID_SQUARES, COL_BAND FROM ' . 'station_profile JOIN '.$this->config->item('table_name').' on '.$this->config->item('table_name').'.station_id = station_profile.station_id ' - . 'WHERE station_profile.station_gridsquare != "" '; + . 'WHERE station_profile.station_gridsquare != "" ' + . 'AND station_profile.station_id in ('.$location_list.')'; if ($band != 'All') { if ($band == 'SAT') { @@ -35,7 +36,6 @@ class Activated_gridmap_model extends CI_Model { } $sql .= $this->addQslToQuery($qsl, $lotw, $eqsl); - return $this->db->query($sql); } @@ -52,7 +52,8 @@ class Activated_gridmap_model extends CI_Model { $sql = 'SELECT DISTINCT station_gridsquare AS GRID_SQUARES, COL_BAND FROM ' . 'station_profile JOIN '.$this->config->item('table_name').' on '.$this->config->item('table_name').'.station_id = station_profile.station_id ' - . 'WHERE station_profile.station_gridsquare != "" '; + . 'WHERE station_profile.station_gridsquare != "" ' + . 'AND station_profile.station_id in ('.$location_list.')'; if ($band != 'All') { if ($band == 'SAT') {