From 7e8e108ff4a358683eaa1b8b185e2a540ccafc79 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 15 Nov 2023 12:20:32 +0100 Subject: [PATCH] We do not need to (re-)update distances if grids are the same --- application/models/Logbook_model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index fdeef86e..46cd4788 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -4083,6 +4083,7 @@ function check_if_callsign_worked_in_logbook($callsign, $StationLocationsArray = $this->db->where("((COL_DISTANCE is NULL) or (COL_DISTANCE = 0))"); $this->db->where("COL_GRIDSQUARE is NOT NULL"); $this->db->where("COL_GRIDSQUARE != ''"); + $this->db->where("COL_GRIDSQUARE != station_gridsquare"); $this->db->trans_start(); $query = $this->db->get($this->config->item('table_name'));