Use DXCC ID from LotW cert for uploads

This commit is contained in:
phl0
2023-04-19 22:06:32 +02:00
parent 19c72eb75a
commit 607a3a72d9
3 changed files with 4 additions and 7 deletions

View File

@@ -225,10 +225,10 @@ class Lotw extends CI_Controller {
// Get Certificate Data
$this->load->model('LotwCert');
$data['station_profile'] = $station_profile;
$data['lotw_cert_info'] = $this->LotwCert->lotw_cert_details($station_profile->station_callsign, $station_profile->station_country);
$data['lotw_cert_info'] = $this->LotwCert->lotw_cert_details($station_profile->station_callsign, $station_profile->station_dxcc);
// If Station Profile has no LOTW Cert continue on.
if(!isset($data['lotw_cert_info']->cert_dxcc)) {
if(!isset($data['lotw_cert_info']->cert_dxcc_id)) {
continue;
}
@@ -244,9 +244,6 @@ class Lotw extends CI_Controller {
continue;
}
$this->load->model('Dxcc');
$data['station_profile_dxcc'] = $this->Dxcc->lookup_country($data['lotw_cert_info']->cert_dxcc);
// Get QSOs
$this->load->model('Logbook_model');