add description comment to api endpoint and changed wording from goalpost to fetchfromid and lastfetchedid

This commit is contained in:
DB4SCW
2024-07-30 21:00:59 +00:00
parent 209424722b
commit dcabead239
2 changed files with 17 additions and 12 deletions

View File

@@ -137,12 +137,12 @@ class adif_data extends CI_Model {
return $this->db->get();
}
function export_past_goalpost($station_id, $goalpost) {
function export_past_id($station_id, $fetchfromid) {
//create query
$this->db->select(''.$this->config->item('table_name').'.*, station_profile.*, dxcc_entities.name as station_country');
$this->db->from($this->config->item('table_name'));
$this->db->where($this->config->item('table_name').'.station_id', $station_id);
$this->db->where($this->config->item('table_name').".COL_PRIMARY_KEY > " , $goalpost); //only get values past the goalpost
$this->db->where($this->config->item('table_name').".COL_PRIMARY_KEY > " , $fetchfromid); //only get values past the fetchfromid value
$this->db->order_by($this->config->item('table_name').".COL_TIME_ON", "ASC");
$this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id');
$this->db->join('dxcc_entities', 'station_profile.station_dxcc = dxcc_entities.adif', 'left outer');