Added hint for next automatic syncs to eQSL, LoTW and QRZ

This commit is contained in:
int2001
2024-10-18 09:36:35 +00:00
parent 9a4041357a
commit 82e52a3619
7 changed files with 24 additions and 1 deletions

View File

@@ -90,4 +90,14 @@ class Cron_model extends CI_Model
$this->set_modified($id);
}
function get_next_run($what) {
$crons=$this->get_crons();
$one_cron = $crons[array_search($what,array_column($crons,'id'),true)];
if (property_exists($one_cron,'next_run')) {
return $one_cron->next_run;
} else {
return null;
}
}
}