From 03b00b223bf36189b933868cecb5bd2776b0ad44 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sat, 25 Apr 2020 21:45:11 +0100 Subject: [PATCH] Changed DaysWithQSO to Time_ON which is the field Cloudlog uses for Date/Time of qsos --- application/models/Dayswithqso_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Dayswithqso_model.php b/application/models/Dayswithqso_model.php index f5941ed5..7c75547b 100644 --- a/application/models/Dayswithqso_model.php +++ b/application/models/Dayswithqso_model.php @@ -15,9 +15,9 @@ class Dayswithqso_model extends CI_Model $CI->load->model('Stations'); $station_id = $CI->Stations->find_active(); - $sql = "select year(col_qso_date) Year, count(distinct col_qso_date) Days from " + $sql = "select year(COL_TIME_ON) Year, count(distinct COL_TIME_ON) Days from " .$this->config->item('table_name'). " thcv - where station_id = " . $station_id . " and col_qso_date is not null group by year"; + where station_id = " . $station_id . " and COL_TIME_ON is not null group by year"; $query = $this->db->query($sql);