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 <jeffpc@josefsipek.net>
1 files changed, 2 insertions(+), 2 deletions(-)

M xlua/scripts/contests/NEQP.lua
M xlua/scripts/contests/NEQP.lua +2 -2
@@ 284,7 284,7 @@ return {
 			-- 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 @@ return {
 			-- 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("?")