Skip to content

Commit

Permalink
Prevent also RPT QSOs from being uploaded to LoTW
Browse files Browse the repository at this point in the history
  • Loading branch information
magicbug committed Jul 11, 2024
2 parents b5752d6 + 4a0ac53 commit 8aa9322
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/models/Logbook_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -4687,14 +4687,17 @@ function fetchIota()
function get_lotw_qsos_to_upload($station_id, $start_date, $end_date)
{

// Missing in tqsl 2.7.3 config.xml
$lotw_unsupported_modes = array('INTERNET', 'RPT');

$this->db->select('COL_PRIMARY_KEY,COL_CALL, COL_BAND, COL_BAND_RX, COL_TIME_ON, COL_RST_RCVD, COL_RST_SENT, COL_MODE, COL_SUBMODE, COL_FREQ, COL_FREQ_RX, COL_GRIDSQUARE, COL_SAT_NAME, COL_PROP_MODE, COL_LOTW_QSL_SENT, station_id');

$this->db->where("station_id", $station_id);
$this->db->group_start();
$this->db->where('COL_LOTW_QSL_SENT', NULL);
$this->db->or_where('COL_LOTW_QSL_SENT !=', "Y");
$this->db->group_end();
$this->db->where('COL_PROP_MODE !=', "INTERNET");
$this->db->where_not_in('COL_PROP_MODE', $lotw_unsupported_modes);
$this->db->where('COL_TIME_ON >=', $start_date);
$this->db->where('COL_TIME_ON <=', $end_date);
$this->db->order_by("COL_TIME_ON", "desc");
Expand Down

0 comments on commit 8aa9322

Please sign in to comment.