Update Logbook_model.php

这个提交包含在:
Peter Goodhall 2023-09-07 13:35:29 +01:00
父节点 8400654d3d
当前提交 f0c6006f2f

查看文件

@ -1467,6 +1467,9 @@ class Logbook_model extends CI_Model {
$this->db->select($this->config->item('table_name').'.*, station_profile.*, dxcc_entities.*, lotw_users.callsign, lotw_users.lastupload');
$this->db->from($this->config->item('table_name'));
// remove anything thats duplicated based on COL_PRIMARY_KEY
$this->db->distinct(''.$this->config->item('table_name').'.COL_PRIMARY_KEY');
$this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id');
$this->db->join('dxcc_entities', $this->config->item('table_name').'.col_dxcc = dxcc_entities.adif', 'left');
$this->db->join('lotw_users', 'lotw_users.callsign = '.$this->config->item('table_name').'.col_call', 'left outer');