From 628c08b2dd21fa6a475e25ae9106ae1ef1797dde Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 18 Dec 2023 23:43:03 +0100 Subject: [PATCH] Sometimes JA prefs are one digit only... --- application/models/Waja.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Waja.php b/application/models/Waja.php index a5829e45..9b0c9c23 100644 --- a/application/models/Waja.php +++ b/application/models/Waja.php @@ -215,7 +215,7 @@ class WAJA extends CI_Model { * $postdata contains data from the form, in this case Lotw or QSL are used */ function getWajaWorked($location_list, $band, $postdata) { - $sql = "SELECT distinct col_state FROM " . $this->config->item('table_name') . " thcv + $sql = "SELECT distinct LPAD(col_state, 2, '0') AS col_state FROM " . $this->config->item('table_name') . " thcv where station_id in (" . $location_list . ")"; if ($postdata['mode'] != 'All') { @@ -252,7 +252,7 @@ class WAJA extends CI_Model { * $postdata contains data from the form, in this case Lotw or QSL are used */ function getWajaConfirmed($location_list, $band, $postdata) { - $sql = "SELECT distinct col_state FROM " . $this->config->item('table_name') . " thcv + $sql = "SELECT distinct LPAD(col_state, 2, '0') AS col_state FROM " . $this->config->item('table_name') . " thcv where station_id in (" . $location_list . ")"; if ($postdata['mode'] != 'All') {