Fix cron job naming

This commit is contained in:
Andreas Kristiansen
2025-10-19 08:12:11 +02:00
parent e5dab05b02
commit 554d171a78
3 changed files with 3 additions and 4 deletions

View File

@@ -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");

View File

@@ -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);

View File

@@ -571,7 +571,7 @@
</tr>
<tr>
<td><?= __("VUCCGrids"); ?></td>
<td><?php echo $vuccgrids_update->last_run ?? __("never"); ?></td>
<td><?php echo $vucc_grids_update->last_run ?? __("never"); ?></td>
<td><a class="btn btn-sm btn-primary" href="<?php echo site_url('update/update_vucc_grids'); ?>"><?= __("Update"); ?></a></td>
</tr>
</table>