From 554d171a78b259f797014517683695c3785c3e36 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Sun, 19 Oct 2025 08:12:11 +0200 Subject: [PATCH] Fix cron job naming --- application/controllers/Debug.php | 2 +- application/models/Update_model.php | 3 +-- application/views/debug/index.php | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/application/controllers/Debug.php b/application/controllers/Debug.php index 4c3a63ab0..7d5b5fd94 100644 --- a/application/controllers/Debug.php +++ b/application/controllers/Debug.php @@ -113,7 +113,7 @@ class Debug extends CI_Controller $data['tle_update'] = $this->cron_model->cron('update_update_tle')->row(); $data['hon_update'] = $this->cron_model->cron('update_update_hamsofnote')->row(); $data['hamqsl_update'] = $this->cron_model->cron('update_update_hamqsl')->row(); - $data['vucc_grids_update'] = $this->cron_model->cron('update_update_vucc_grids')->row(); + $data['vucc_grids_update'] = $this->cron_model->cron('vucc_grid_file')->row(); $data['page_title'] = __("Debug"); diff --git a/application/models/Update_model.php b/application/models/Update_model.php index 4ed0ce838..957dec336 100644 --- a/application/models/Update_model.php +++ b/application/models/Update_model.php @@ -628,9 +628,8 @@ class Update_model extends CI_Model { function update_vucc_grids() { // set the last run in cron table for the correct cron id $this->load->model('cron_model'); - $this->cron_model->set_last_run($this->router->class . '_' . $this->router->method); + $this->cron_model->set_last_run('vucc_grid_file'); - // $url = 'https://sourceforge.net/p/trustedqsl/tqsl/ci/master/plain/apps/vuccgrids.dat'; $url = 'https://sourceforge.net/p/trustedqsl/tqsl/ci/master/tree/apps/vuccgrids.dat?format=raw'; $curl = curl_init($url); diff --git a/application/views/debug/index.php b/application/views/debug/index.php index cdf7e505e..4152a7b19 100644 --- a/application/views/debug/index.php +++ b/application/views/debug/index.php @@ -571,7 +571,7 @@