From fed43eda2cd687c8c4cdc06b33da55ffaa7e0367 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 12 Jul 2023 15:47:30 +0200 Subject: [PATCH] Always update with LoTW confirmed grid --- application/models/Logbook_model.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 9864aea1..7fb081e0 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -2693,21 +2693,6 @@ class Logbook_model extends CI_Model { $this->db->where('date_format(COL_TIME_ON, \'%Y-%m-%d %H:%i\') = "'.$datetime.'"'); $this->db->where('COL_CALL', $callsign); $this->db->where('COL_BAND', $band); - $this->db->group_start(); - $this->db->where('COL_VUCC_GRIDS'); - $this->db->or_where('COL_VUCC_GRIDS', ''); - $this->db->group_end(); - if(strlen($qsl_gridsquare) > 4) { - $this->db->group_start(); - $this->db->where('COL_GRIDSQUARE', ""); - $this->db->or_where('COL_GRIDSQUARE', substr($qsl_gridsquare, 0, 4)); - if(strlen($qsl_gridsquare) > 6) { - $this->db->or_where('COL_GRIDSQUARE', substr($qsl_gridsquare, 0, 6)); - } - $this->db->group_end(); - } else { - $this->db->where('COL_GRIDSQUARE', ""); - } $this->db->update($this->config->item('table_name'), $data); }