diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index b3ee731ac..01aa3f7db 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -4368,6 +4368,8 @@ function lotw_last_qsl_date($user_id) { if (!$all){ $this->db->where("COL_DXCC is NULL"); } + $this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); + $this->db->where('station_profile.user_id', $this->session->userdata('user_id')); $r = $this->db->get($this->config->item('table_name')); @@ -4382,15 +4384,12 @@ function lotw_last_qsl_date($user_id) { // Manual call $d = $this->check_dxcc_table($row['COL_CALL'], $qso_date); - // Stored procedure call - //$d = $this->check_dxcc_stored_proc($row["COL_CALL"], $qso_date); - if ($d[0] != 'Not Found'){ $sql = sprintf("update %s set COL_COUNTRY = '%s', COL_DXCC='%s' where COL_PRIMARY_KEY=%d", $this->config->item('table_name'), addslashes(ucwords(strtolower($d[1]), "- (/")), $d[0], $row['COL_PRIMARY_KEY']); $this->db->query($sql); //print($sql."\n"); - printf("Updating %s to %s and %s\n
", $row['COL_PRIMARY_KEY'], ucwords(strtolower($d[1]), "- (/"), $d[0]); + // printf("Updating %s to %s and %s\n
", $row['COL_PRIMARY_KEY'], ucwords(strtolower($d[1]), "- (/"), $d[0]); $count++; } } diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 2c5687d8d..870959559 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -1269,6 +1269,8 @@ $($('#callsign')).on('keypress',function(e) {