# HG changeset patch # User Josef 'Jeff' Sipek # Date 1715864980 14400 # Thu May 16 09:09:40 2024 -0400 # Node ID e36ecb3cc96300cdad6eaf423a0a475b21d474e5 # Parent 89c7e404d0165979103b3d342aabae58bf8e3c22 xlua: make NEQP work for any year Instead of hard-coding a year, check the year specified by the user on the command line. Signed-off-by: Josef 'Jeff' Sipek diff --git a/xlua/scripts/contests/NEQP.lua b/xlua/scripts/contests/NEQP.lua --- a/xlua/scripts/contests/NEQP.lua +++ b/xlua/scripts/contests/NEQP.lua @@ -284,7 +284,7 @@ -- load previous contacts from history for qso in hlog.index.history(true) do if qso.additional['contest-id'] == "NEQP" and - qso.additional['contest-year'] == 2024 and + qso.additional['contest-year'] == contest.year and allowed_bands[qso.tx.band] then dups[mkhash(qso)] = true end @@ -304,7 +304,7 @@ -- qso.tx.rst = "59" -- we always send 59 -- qso.rx.rst = "59" -- we expect a 59 qso.additional['contest-id'] = 'NEQP' - qso.additional['contest-year'] = 2024 + qso.additional['contest-year'] = contest.year if cs == nil then contest.lcd("?")