From 5c59e9eddcd780b39d8842fc5b241375c6b17aed Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 12 Jul 2023 10:48:22 +0200 Subject: [PATCH] Remove code to auto-create QSOs upon LoTW matches --- application/controllers/Lotw.php | 18 ++++++------------ application/views/lotw/import.php | 8 -------- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 5c28ee1e..edfc6ff2 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -498,18 +498,8 @@ class Lotw extends CI_Controller { } $status = $this->logbook_model->import_check($time_on, $record['call'], $record['band'], $record['mode'], $record['station_callsign']); - $skipNewQso = $this->input->post('importMissing'); // If import missing was checked - if($status[0] == "No Match" && $skipNewQso != NULL) { - - $result = $this->logbook_model->import($record, $station_id, NULL, TRUE, NULL, NULL, NULL, true, false); // Create the Entry - if ($result == "") { - $lotw_status = 'QSO imported'; - } else { - $lotw_status = $result; - } - - } else { + if($status[0] == "Found") { if (isset($record['state'])) { $state = $record['state']; } else { @@ -561,7 +551,11 @@ class Lotw extends CI_Controller { $table .= "".$qsl_gridsquare.""; $table .= "".$iota.""; $table .= "QSO Record: ".$status[0].""; - $table .= "LoTW Record: ".$lotw_status.""; + if($status[0] == "Found") { + $table .= "LoTW Record: ".$lotw_status.""; + } else { + $table .= ""; + } $table .= ""; } diff --git a/application/views/lotw/import.php b/application/views/lotw/import.php index 76139dea..d76e9239 100644 --- a/application/views/lotw/import.php +++ b/application/views/lotw/import.php @@ -41,14 +41,6 @@
-