mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Added a function lotw_last_qsl_date() to return the last LoTW QSL received date recorded in the DB. We use that information to only pull back a LoTW report from ARRL that has QSLs since the last QSL (inclusive, unfortunately).
This commit is contained in:
@@ -585,6 +585,18 @@ class Logbook_model extends CI_Model {
|
||||
|
||||
return "Updated";
|
||||
}
|
||||
|
||||
function lotw_last_qsl_date() {
|
||||
$this->db->select('COL_LOTW_QSLRDATE');
|
||||
$this->db->where('COL_LOTW_QSLRDATE IS NOT NULL');
|
||||
$this->db->order_by("COL_LOTW_QSLRDATE", "desc");
|
||||
$this->db->limit(1);
|
||||
|
||||
$query = $this->db->get($this->config->item('table_name'));
|
||||
$row = $query->row();
|
||||
|
||||
return $row->COL_LOTW_QSLRDATE;
|
||||
}
|
||||
|
||||
function import($record) {
|
||||
// Join date+time
|
||||
|
||||
31495
uploads/lotwreport.adi
31495
uploads/lotwreport.adi
File diff suppressed because it is too large
Load Diff
31495
uploads/lotwreport1.adi
31495
uploads/lotwreport1.adi
File diff suppressed because it is too large
Load Diff
31495
uploads/lotwreport2.adi
31495
uploads/lotwreport2.adi
File diff suppressed because it is too large
Load Diff
31495
uploads/lotwreport3.adi
31495
uploads/lotwreport3.adi
File diff suppressed because it is too large
Load Diff
31495
uploads/lotwreport4.adi
31495
uploads/lotwreport4.adi
File diff suppressed because it is too large
Load Diff
31495
uploads/lotwreport5.adi
31495
uploads/lotwreport5.adi
File diff suppressed because it is too large
Load Diff
31495
uploads/lotwreport6.adi
31495
uploads/lotwreport6.adi
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user