Include QSOs where COL_EQSL_QSL_SENT is null when uploading to eQSL

pull/366/head
Peter Goodhall 2019-10-06 15:40:33 +01:00
rodzic 8a601e3c5e
commit da9eb5fc4d
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -978,8 +978,9 @@ class Logbook_model extends CI_Model {
$this->db->from('station_profile');
$this->db->join($this->config->item('table_name'),'station_profile.station_id = '.$this->config->item('table_name').'.station_id','left');
$this->db->where('station_profile.eqslqthnickname !=', '');
$this->db->where($this->config->item('table_name').'.COL_EQSL_QSL_SENT !=', 'Y');
$this->db->where($this->config->item('table_name').'.COL_EQSL_QSL_SENT !=', 'I');
$this->db->or_where($this->config->item('table_name').'.COL_EQSL_QSL_SENT !=', 'Y');
$this->db->or_where($this->config->item('table_name').'.COL_EQSL_QSL_SENT !=', 'I');
$this->db->or_where(array($this->config->item('table_name').'.COL_EQSL_QSL_SENT' => NULL));
return $this->db->get();
}