Do not update, if LOTW_R_DATE is already set to thats received

This commit is contained in:
int2001
2024-03-06 11:28:24 +00:00
parent e4f411c708
commit d67716cc70

View File

@@ -3141,6 +3141,10 @@ function check_if_callsign_worked_in_logbook($callsign, $StationLocationsArray =
$data['COL_CLUBLOG_QSO_UPLOAD_STATUS'] = 'M';
}
$this->db->group_start();
$this->db->where('date_format(COL_LOTW_QSLRDATE, \'%Y-%m-%d %H:%i\') != "'.$qsl_date.'"');
$this->db->or_where('COL_LOTW_QSLRDATE is null');
$this->db->group_end();
$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);