changed last_run function to be more generic

This commit is contained in:
HB9HIL
2024-04-26 15:07:54 +02:00
parent 2e24330cc8
commit f2163cb2ba
7 changed files with 25 additions and 24 deletions

View File

@@ -30,7 +30,7 @@ class Qrz extends CI_Controller {
$this->setOptions();
$this->load->model('cron_model');
$this->cron_model->set_last_run('upload_qrz');
$this->cron_model->set_last_run($this->router->class.'_'.$this->router->method);
$this->load->model('logbook_model');
@@ -216,7 +216,7 @@ class Qrz extends CI_Controller {
$this->load->model('logbook_model');
$this->load->model('cron_model');
$this->cron_model->set_last_run('download_qrz');
$this->cron_model->set_last_run($this->router->class.'_'.$this->router->method);
$api_keys = $this->logbook_model->get_qrz_apikeys();