From 95e2fb1ab1b1a1a0687ed7302510e63273d66a05 Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 2 Sep 2022 14:11:13 +0200 Subject: [PATCH] Also export QSOs with LotW QSL SENT date of NULL --- application/models/Adif_data.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/models/Adif_data.php b/application/models/Adif_data.php index a0742ada..edca3e97 100644 --- a/application/models/Adif_data.php +++ b/application/models/Adif_data.php @@ -93,7 +93,10 @@ class adif_data extends CI_Model { $this->db->where("date(".$this->config->item('table_name').".COL_TIME_ON) <= '".$to."'"); } if ($exportLotw) { + $this->db-group_start(); $this->db->where($this->config->item('table_name').".COL_LOTW_QSL_SENT != 'Y'"); + $this->db->or_where($this->config->item('table_name').".COL_LOTW_QSL_SENT", NULL); + $this->db->group_end(); } $this->db->order_by($this->config->item('table_name').".COL_TIME_ON", "ASC"); @@ -111,7 +114,10 @@ class adif_data extends CI_Model { $this->db->select(''.$this->config->item('table_name').'.*, station_profile.*'); $this->db->from($this->config->item('table_name')); $this->db->where($this->config->item('table_name').'.station_id', $active_station_id); + $this->db-group_start(); $this->db->where($this->config->item('table_name').".COL_LOTW_QSL_SENT != 'Y'"); + $this->db->or_where($this->config->item('table_name').".COL_LOTW_QSL_SENT", NULL); + $this->db->group_end(); $this->db->order_by($this->config->item('table_name').".COL_TIME_ON", "ASC");