Merge pull request #2859 from phl0/fixOneCharWajaStates

Sometimes JA prefs are one digit only...
这个提交包含在:
Andreas Kristiansen 2023-12-19 09:59:34 +01:00 提交者 GitHub
当前提交 b9badf2e8c
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23

查看文件

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