From c4faf31bab4daf1e0b63ffebd043b3de4d41cfdf Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Sun, 24 Aug 2025 17:28:29 +0200 Subject: [PATCH] Add first and last date in callstats --- application/models/Callstats_model.php | 4 +++- application/views/callstats/index.php | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/application/models/Callstats_model.php b/application/models/Callstats_model.php index cde44b4eb..c475d280d 100644 --- a/application/models/Callstats_model.php +++ b/application/models/Callstats_model.php @@ -25,7 +25,9 @@ class Callstats_model extends CI_Model { $sql = "select `col_call` as `call`, - COUNT(*) as `count` + COUNT(*) as `count`, + min(col_time_on) as first_qso, + max(col_time_on) as last_qso from " . $this->config->item('table_name') . " left join satellite on ".$this->config->item('table_name').".COL_SAT_NAME = satellite.name where station_id in (" . $location_list . ")"; diff --git a/application/views/callstats/index.php b/application/views/callstats/index.php index 7d335fe37..24966a9dc 100644 --- a/application/views/callstats/index.php +++ b/application/views/callstats/index.php @@ -120,11 +120,10 @@ } ?> ' . __("Nothing found!") . ''; } @@ -135,7 +134,7 @@ #