mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Lotw: Fix the auto pull error
This commit is contained in:
committed by
g0wfv
parent
baec4be5bd
commit
e907bd9ca2
@@ -104,8 +104,8 @@ class Lotw extends CI_Controller {
|
||||
|
||||
// Get credentials for LoTW
|
||||
$query = $this->user_model->get_by_id($this->session->userdata('user_id'));
|
||||
$q = $query->row();
|
||||
$data['user_lotw_name'] = $q->user_lotw_name;
|
||||
$q = $query->row();
|
||||
$data['user_lotw_name'] = $q->user_lotw_name;
|
||||
$data['user_lotw_password'] = $q->user_lotw_password;
|
||||
|
||||
// Get URL for downloading LoTW
|
||||
@@ -121,7 +121,7 @@ class Lotw extends CI_Controller {
|
||||
}
|
||||
|
||||
// Query the logbook to determine when the last LoTW confirmation was
|
||||
$lotw_last_qsl_date = $this->logbook_model->lotw_last_qsl_date();
|
||||
$lotw_last_qsl_date = date('Y-m-d', strtotime($this->logbook_model->lotw_last_qsl_date()));
|
||||
|
||||
// Build URL for LoTW report file
|
||||
$lotw_url .= "?";
|
||||
@@ -132,12 +132,8 @@ class Lotw extends CI_Controller {
|
||||
//TODO: Option to specifiy whether we download location data from LoTW or not
|
||||
//$lotw_url .= "&qso_qsldetail=\"yes\";
|
||||
|
||||
/*
|
||||
* TODO: (G0WFV) commented this out as it's causing a crash (needs investigation)
|
||||
*
|
||||
* $lotw_url .= "&qso_qslsince=";
|
||||
* $lotw_url .= "$lotw_last_qsl_date";
|
||||
*/
|
||||
$lotw_url .= "&qso_qslsince=";
|
||||
$lotw_url .= "$lotw_last_qsl_date";
|
||||
|
||||
// Only pull back entries that belong to this callsign
|
||||
$lotw_call = $this->session->userdata('user_callsign');
|
||||
|
||||
Reference in New Issue
Block a user