From 8fa9c14c7c5f9c773b5280859ac44d9da34a7696 Mon Sep 17 00:00:00 2001 From: Paul Traina <216482-pleasantone@users.noreply.gitlab.com> Date: Fri, 30 Oct 2020 14:06:32 -0700 Subject: [PATCH] Change LOTW filtering behavior in CR Roster was treating LOTW filtering as "advisory" if someone had previously set LoTW filtering to "show me nothing older than 3 months" they would still get older stations but with "?" -- this is inconsistent with every other filter, and is annoying--a station that once uploaded to LoTW 8 years ago shouldn't be considered a LoTW station. Fixes this. --- package.nw/lib/roster.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package.nw/lib/roster.js b/package.nw/lib/roster.js index 9aeb0455..a573bc80 100644 --- a/package.nw/lib/roster.js +++ b/package.nw/lib/roster.js @@ -648,6 +648,15 @@ function viewRoster() callRoster[callHash].tx = false; continue; } + if ( g_rosterSettings.maxLoTW < 27 ) + { + var months = (g_day - window.opener.g_lotwCallsigns[call]) / 30; + if ( months > g_rosterSettings.maxLoTW ) + { + callRoster[callHash].tx = false; + continue; + } + } } if ( window.opener.g_callsignLookups.eqslUseEnable == true && g_rosterSettings.useseQSL == true )