Merge pull request #2389 from int2001/clqrz_fix

Prevent QSO being updated twice or more when LoTW-Cnf arrives
这个提交包含在:
Peter Goodhall 2023-08-07 14:58:36 +01:00 提交者 GitHub
当前提交 8cce754258
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23

查看文件

@ -2725,6 +2725,7 @@ class Logbook_model extends CI_Model {
$this->db->where('date_format(COL_TIME_ON, \'%Y-%m-%d %H:%i\') = "'.$datetime.'"');
$this->db->where('COL_CALL', $callsign);
$this->db->where('COL_BAND', $band);
$this->db->where('COL_LOTW_QSL_RCVD !=', $qsl_status); // Prevent QSO from beeing updated twice (or more)
$this->db->where('COL_STATION_CALLSIGN', $station_callsign);
$this->db->update($this->config->item('table_name'), $data);