kopia lustrzana https://github.com/magicbug/Cloudlog
Remove code to auto-create QSOs upon LoTW matches
rodzic
4ef2237ba4
commit
5c59e9eddc
|
@ -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 .= "<td>".$qsl_gridsquare."</td>";
|
||||
$table .= "<td>".$iota."</td>";
|
||||
$table .= "<td>QSO Record: ".$status[0]."</td>";
|
||||
if($status[0] == "Found") {
|
||||
$table .= "<td>LoTW Record: ".$lotw_status."</td>";
|
||||
} else {
|
||||
$table .= "<td></td>";
|
||||
}
|
||||
$table .= "</tr>";
|
||||
}
|
||||
|
||||
|
|
|
@ -41,14 +41,6 @@
|
|||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="form-group row" style="display: none">
|
||||
<div class="col-md-10">
|
||||
<div class="form-check-inline">
|
||||
<input class="form-check-input" type="checkbox" name="importMissing" value="1" id="importMissing">
|
||||
<label class="form-check-label" for="importMissing"><?php echo lang('lotw_import_missing_qsos_text'); ?></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="form-text text-muted"><?php echo lang('lotw_report_download_overview_helptext'); ?></p>
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue