Fix last update for HAMqsl cron job

This commit is contained in:
Szymon Porwolik
2025-09-22 20:57:04 +02:00
parent 06d72c5867
commit a40d5e46f8
2 changed files with 5 additions and 1 deletions

View File

@@ -451,6 +451,10 @@ class Update extends CI_Controller {
} else {
$this->session->set_flashdata('error', __("HAMqsl Update failed. Result: ") . "'" . $result . "'");
}
$this->load->model('cron_model');
$this->cron_model->set_last_run($this->router->class.'_'.$this->router->method);
redirect('debug');
} else {
echo $result;

View File

@@ -566,7 +566,7 @@
</tr>
<tr>
<td><?= __("HAMqsl"); ?></td>
<td><?php echo $hon_update->last_run ?? __("never"); ?></td>
<td><?php echo $hamqsl_update->last_run ?? __("never"); ?></td>
<td><a class="btn btn-sm btn-primary" href="<?php echo site_url('update/update_hamqsl'); ?>"><?= __("Update"); ?></a></td>
</tr>
</table>