Sometimes JA prefs are one digit only...

pull/2859/head
phl0 2023-12-18 23:43:03 +01:00
rodzic 8c266fea69
commit 628c08b2dd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 48EA1E640798CA9A
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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') {