# HG changeset patch # User Josef 'Jeff' Sipek # Date 1737829269 18000 # Sat Jan 25 13:21:09 2025 -0500 # Node ID bed61843c13265b06aa5b421a96275871b277a7b # Parent 86b7fc3519639075fed2fc1d03b432ea25bbf193 xlua: grid helper script shouldn't use bad QSOs for points & mults They should, however, be included in all QSOs list. Signed-off-by: Josef 'Jeff' Sipek diff --git a/xlua/scripts/helper-grid.lua b/xlua/scripts/helper-grid.lua --- a/xlua/scripts/helper-grid.lua +++ b/xlua/scripts/helper-grid.lua @@ -79,9 +79,18 @@ local tx_exch, tx_exch_ok = qexchange(qso.tx, tx) local rx_exch, rx_exch_ok = qexchange(qso.rx, rx) + local exch_ok = tx_exch_ok and rx_exch_ok + + -- add to list of all qsos + table.insert(all, { qso, tx_exch, rx_exch, exch_ok }) + + -- if the exchange is bad, then there are no points/mults/etc. + if not exch_ok then + return + end -- accumulate points - if not self:is_dup(qso, tx, rx) and tx_exch_ok and rx_exch_ok then + if not self:is_dup(qso, tx, rx) then points[1] = points[1] + qpoints(qso, tx, rx) end @@ -91,9 +100,6 @@ mults:add(m) end - -- add to list of all QSOs - table.insert(all, { qso, tx_exch, rx_exch, tx_exch_ok and rx_exch_ok }) - -- stash for future dup detection self:qso_load(qso, tx, rx)