mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Merge pull request #1415 from int2001/lotw_updates_dxcc
Update DXCC coming from LoTW to Log
This commit is contained in:
@@ -573,7 +573,13 @@ class Lotw extends CI_Controller {
|
||||
$ituz = "";
|
||||
}
|
||||
|
||||
$lotw_status = $this->logbook_model->lotw_update($time_on, $record['call'], $record['band'], $qsl_date, $record['qsl_rcvd'], $state, $qsl_gridsquare, $qsl_vucc_grids, $iota, $cnty, $cqz, $ituz, $record['station_callsign'],$qso_id4lotw, $station_ids, $ant_path);
|
||||
if (isset($record['dxcc'])) {
|
||||
$dxcc = $record['dxcc'];
|
||||
} else {
|
||||
$dxcc = "";
|
||||
}
|
||||
|
||||
$lotw_status = $this->logbook_model->lotw_update($time_on, $record['call'], $record['band'], $qsl_date, $record['qsl_rcvd'], $state, $qsl_gridsquare, $qsl_vucc_grids, $iota, $cnty, $cqz, $ituz, $record['station_callsign'],$qso_id4lotw, $station_ids, $dxcc, $ant_path);
|
||||
|
||||
$table .= "<tr>";
|
||||
$table .= "<td>".$record['station_callsign']."</td>";
|
||||
|
||||
@@ -3628,7 +3628,7 @@ class Logbook_model extends CI_Model {
|
||||
}
|
||||
}
|
||||
|
||||
function lotw_update($datetime, $callsign, $band, $qsl_date, $qsl_status, $state, $qsl_gridsquare, $qsl_vucc_grids, $iota, $cnty, $cqz, $ituz, $station_callsign, $qsoid, $station_ids, $ant_path = null) {
|
||||
function lotw_update($datetime, $callsign, $band, $qsl_date, $qsl_status, $state, $qsl_gridsquare, $qsl_vucc_grids, $iota, $cnty, $cqz, $ituz, $station_callsign, $qsoid, $station_ids, $dxcc = null, $ant_path = null) {
|
||||
|
||||
$data = array(
|
||||
'COL_LOTW_QSLRDATE' => $qsl_date,
|
||||
@@ -3650,6 +3650,10 @@ class Logbook_model extends CI_Model {
|
||||
$data['COL_CQZ'] = $cqz;
|
||||
}
|
||||
|
||||
if (($dxcc ?? '') != '') {
|
||||
$data['COL_DXCC'] = $dxcc;
|
||||
}
|
||||
|
||||
if ($ituz != "") {
|
||||
$data['COL_ITUZ'] = $ituz;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user