mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Base LoTW matches on time and station_callsign
This commit is contained in:
@@ -475,7 +475,6 @@ class Lotw extends CI_Controller {
|
||||
$tableheaders .= "<td>IOTA</td>";
|
||||
$tableheaders .= "<td>Log Status</td>";
|
||||
$tableheaders .= "<td>LoTW Status</td>";
|
||||
$tableheaders .= "<td>Station ID</td>";
|
||||
$tableheaders .= "</tr>";
|
||||
|
||||
$table = "";
|
||||
@@ -503,16 +502,12 @@ class Lotw extends CI_Controller {
|
||||
|
||||
if($status[0] == "No Match" && $skipNewQso != NULL) {
|
||||
|
||||
$station_id = $this->logbook_model->find_correct_station_id($record['station_callsign'], $record['my_gridsquare']);
|
||||
|
||||
if ($station_id != 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;
|
||||
}
|
||||
}
|
||||
$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 (isset($record['state'])) {
|
||||
@@ -551,12 +546,7 @@ class Lotw extends CI_Controller {
|
||||
$ituz = "";
|
||||
}
|
||||
|
||||
$station_id = $this->logbook_model->find_correct_station_id($record['station_callsign'], $record['my_gridsquare']);
|
||||
if ($station_id != NULL) {
|
||||
$lotw_status = $this->logbook_model->lotw_update($time_on, $record['call'], $record['band'], $qsl_date, $record['qsl_rcvd'], $state, $qsl_gridsquare, $iota, $cnty, $cqz, $ituz, $station_id);
|
||||
} else {
|
||||
$lotw_status = "No matching Grid/OP-Call (check Locations)";
|
||||
}
|
||||
$lotw_status = $this->logbook_model->lotw_update($time_on, $record['call'], $record['band'], $qsl_date, $record['qsl_rcvd'], $state, $qsl_gridsquare, $iota, $cnty, $cqz, $ituz, $record['station_callsign']);
|
||||
}
|
||||
|
||||
|
||||
@@ -572,7 +562,6 @@ class Lotw extends CI_Controller {
|
||||
$table .= "<td>".$iota."</td>";
|
||||
$table .= "<td>QSO Record: ".$status[0]."</td>";
|
||||
$table .= "<td>LoTW Record: ".$lotw_status."</td>";
|
||||
$table .= "<td>".$station_id."</td>";
|
||||
$table .= "</tr>";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user