From e20f1c58ca80c662580d65295bd57395f9f58d2b Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sun, 6 Sep 2020 20:38:45 +0100 Subject: [PATCH] [LoTW] Removed test code and added comments --- application/controllers/Lotw.php | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index aa3d34b0..48bb6598 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -413,7 +413,17 @@ class Lotw extends CI_Controller { return $data; } - + + /* + |-------------------------------------------------------------------------- + | Function: loadFromFile + |-------------------------------------------------------------------------- + | + | $filepath is the ADIF file, $display_view is used to hide the output if its internal script + | + | Internal function that takes the LoTW ADIF and imports into the log + | + */ private function loadFromFile($filepath, $display_view = "TRUE") { @@ -527,6 +537,15 @@ class Lotw extends CI_Controller { } } + /* + |-------------------------------------------------------------------------- + | Function: lotw_download + |-------------------------------------------------------------------------- + | + | Collects users with LoTW usernames and passwords and runs through them + | downloading matching QSOs. + | + */ function lotw_download() { $this->load->model('user_model'); $this->load->model('logbook_model'); @@ -854,16 +873,6 @@ class Lotw extends CI_Controller { } - public function sat() { - $satellite_name_check = $this->lotw_satellite_map('ISS'); - - if($satellite_name_check != FALSE) { - echo $satellite_name_check; - } else { - echo "no match"; - } - } - /* | Function: lotw_satellite_map | Requires: OSCAR Satellite name $satname