From c397716cf2c5a35d18601883d140d215356d0fa0 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Wed, 22 May 2019 15:10:57 +0100 Subject: [PATCH] If LOTW import entry isn't found within the database but its within the ADIF from LOTW QSO record is created. --- application/controllers/Lotw.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 763f2605..2e7c2a56 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -60,7 +60,14 @@ class Lotw extends CI_Controller { } $status = $this->logbook_model->import_check($time_on, $record['call'], $record['band']); - $lotw_status = $this->logbook_model->lotw_update($time_on, $record['call'], $record['band'], $qsl_date, $record['qsl_rcvd']); + + if($status == "No Match") { + // Create the Entry + $this->logbook_model->import($record); + } else { + $lotw_status = $this->logbook_model->lotw_update($time_on, $record['call'], $record['band'], $qsl_date, $record['qsl_rcvd']); + } + $table .= ""; $table .= "".$time_on."";