mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Added filtering on maxAge / de-cont to bandmap (apply settings)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user