Added export_lotw to export an ADIF file of QSOs that have not been uploaded to LoTW
这个提交包含在:
父节点
bbfbdd8450
当前提交
cbe6635271
共有 2 个文件被更改,包括 20 次插入 和 0 次删除
|
|
@ -49,6 +49,18 @@ class adif extends CI_Controller {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function export_lotw()
|
||||||
|
{
|
||||||
|
// Set memory limit to unlimited to allow heavy usage
|
||||||
|
ini_set('memory_limit', '-1');
|
||||||
|
|
||||||
|
$this->load->model('adif_data');
|
||||||
|
|
||||||
|
$data['qsos'] = $this->adif_data->export_lotw();
|
||||||
|
|
||||||
|
$this->load->view('adif/data/exportall', $data);
|
||||||
|
}
|
||||||
|
|
||||||
public function import() {
|
public function import() {
|
||||||
$data['page_title'] = "ADIF Import";
|
$data['page_title'] = "ADIF Import";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,14 @@ class adif_data extends CI_Model {
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function export_lotw() {
|
||||||
|
$this->db->where("COL_LOTW_QSL_SENT != 'Y'");
|
||||||
|
$this->db->order_by("COL_TIME_ON", "ASC");
|
||||||
|
$query = $this->db->get($this->config->item('table_name'));
|
||||||
|
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用