Added filtering on maxAge / de-cont to bandmap (apply settings)

This commit is contained in:
int2001
2023-07-21 14:44:14 +00:00
parent 355aef7af8
commit c62a4c70a0
2 changed files with 16 additions and 4 deletions

View File

@@ -11,8 +11,14 @@ class Dxcluster extends CI_Controller {
}
function spots($band,$age = 60) {
$calls_found=$this->logbook_model->dxc_spotlist($band, $age);
function spots($band,$age = '', $de = '') {
if ($age == '') {
$age = $this->optionslib->get_option('dxcluster_maxage');
}
if ($de == '') {
$de = $this->optionslib->get_option('dxcluster_decont');
}
$calls_found=$this->logbook_model->dxc_spotlist($band, $age, $de);
header('Content-Type: application/json');
if ($calls_found) {
echo json_encode($calls_found, JSON_PRETTY_PRINT);