mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Add Mode/SAT
This commit is contained in:
@@ -894,7 +894,7 @@
|
||||
return $result->result();
|
||||
}
|
||||
|
||||
public function sat_qsos($sat){
|
||||
public function sat_qsos($sat,$mode) {
|
||||
$this->load->model('logbooks_model');
|
||||
$logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
||||
$this->db->select('*, satellite.displayname AS sat_displayname');
|
||||
@@ -902,6 +902,12 @@
|
||||
$this->db->join('satellite', 'satellite.name = '.$this->config->item('table_name').'.COL_SAT_NAME');
|
||||
$this->db->join('dxcc_entities', $this->config->item('table_name') . '.col_dxcc = dxcc_entities.adif', 'left outer');
|
||||
$this->db->where('COL_SAT_NAME', $sat);
|
||||
if (($mode ?? '') != '') {
|
||||
$this->db->group_start();
|
||||
$this->db->where('COL_MODE', $mode);
|
||||
$this->db->or_where('COL_SUBMODE', $mode);
|
||||
$this->db->group_end();
|
||||
}
|
||||
$this->db->where_in($this->config->item('table_name').'.station_id', $logbooks_locations_array);
|
||||
$this->db->order_by("COL_TIME_ON desc, COL_PRIMARY_KEY desc");
|
||||
$this->db->limit(500);
|
||||
|
||||
Reference in New Issue
Block a user