From 18b14171722ef4e9c8b21b60598289d8d947e7f1 Mon Sep 17 00:00:00 2001 From: Hugo Silva Date: Sun, 19 Mar 2023 10:49:58 +0000 Subject: [PATCH] Bugfix selecting stations with pending QSOs --- application/models/Stations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Stations.php b/application/models/Stations.php index 03a689da..2bf0c938 100644 --- a/application/models/Stations.php +++ b/application/models/Stations.php @@ -355,12 +355,12 @@ class Stations extends CI_Model { LEFT JOIN webadif ON qsos.COL_PRIMARY_KEY = webadif.qso_id WHERE webadif.qso_id IS NULL GROUP BY qsos.station_id - ) notc + ) notc ON station_profile.station_id = notc.station_id INNER JOIN ( SELECT qsos.station_id, COUNT(qsos.COL_PRIMARY_KEY) c FROM %s qsos GROUP BY qsos.station_id - ) totc + ) totc ON station_profile.station_id = totc.station_id WHERE COALESCE(station_profile.webadifapikey, '') <> '' AND COALESCE(station_profile.webadifapiurl, '') <> '' AND station_profile.user_id = %d