Permalink
Browse files

Added a function lotw_last_qsl_date() to return the last LoTW QSL rec…

…eived 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).
  • Loading branch information...
1 parent 8b86756 commit a7857d316b1e8629e4fa6012088798d3983665c4 @skweeker skweeker committed Feb 23, 2013
Showing with 12 additions and 220,465 deletions.
  1. +12 −0 application/models/logbook_model.php
  2. +0 −31,495 uploads/lotwreport.adi
  3. +0 −31,495 uploads/lotwreport1.adi
  4. +0 −31,495 uploads/lotwreport2.adi
  5. +0 −31,495 uploads/lotwreport3.adi
  6. +0 −31,495 uploads/lotwreport4.adi
  7. +0 −31,495 uploads/lotwreport5.adi
  8. +0 −31,495 uploads/lotwreport6.adi
@@ -585,6 +585,18 @@ function lotw_update($datetime, $callsign, $band, $qsl_date, $qsl_status) {
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
Oops, something went wrong.

0 comments on commit a7857d3

Please sign in to comment.