mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Added hint for next automatic syncs to eQSL, LoTW and QRZ
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user