Add first and last date in callstats

This commit is contained in:
Andreas Kristiansen
2025-08-24 17:28:29 +02:00
parent 1155722452
commit c4faf31bab
2 changed files with 15 additions and 5 deletions

View File

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