kopia lustrzana https://gitlab.com/gridtracker.org/gridtracker
Uses LoTW, eQSL and OQRS are ored together if checked not mutually exclusive
rodzic
8a735d7065
commit
e449682fb4
|
@ -182,41 +182,49 @@ function processRosterFiltering(callRoster, rosterSettings)
|
|||
continue;
|
||||
}
|
||||
|
||||
let usesOneOf = 0;
|
||||
let checkUses = 0;
|
||||
|
||||
if (window.opener.GT.callsignLookups.lotwUseEnable == true && CR.rosterSettings.usesLoTW == true)
|
||||
{
|
||||
if (!(call in window.opener.GT.lotwCallsigns))
|
||||
checkUses++;
|
||||
if (call in window.opener.GT.lotwCallsigns)
|
||||
{
|
||||
entry.tx = false;
|
||||
continue;
|
||||
}
|
||||
usesOneOf++;
|
||||
if (CR.rosterSettings.maxLoTW < 27)
|
||||
{
|
||||
let months = (CR.day - window.opener.GT.lotwCallsigns[call]) / 30;
|
||||
if (months > CR.rosterSettings.maxLoTW)
|
||||
{
|
||||
entry.tx = false;
|
||||
continue;
|
||||
usesOneOf--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (window.opener.GT.callsignLookups.eqslUseEnable == true && CR.rosterSettings.useseQSL == true)
|
||||
{
|
||||
if (!(call in window.opener.GT.eqslCallsigns))
|
||||
checkUses++;
|
||||
if (call in window.opener.GT.eqslCallsigns)
|
||||
{
|
||||
entry.tx = false;
|
||||
continue;
|
||||
usesOneOf++;
|
||||
}
|
||||
}
|
||||
|
||||
if (window.opener.GT.callsignLookups.oqrsUseEnable == true && CR.rosterSettings.usesOQRS == true)
|
||||
{
|
||||
if (!(call in window.opener.GT.oqrsCallsigns))
|
||||
checkUses++;
|
||||
if (call in window.opener.GT.oqrsCallsigns)
|
||||
{
|
||||
usesOneOf++;
|
||||
}
|
||||
}
|
||||
|
||||
if (checkUses > 0 && usesOneOf == 0)
|
||||
{
|
||||
entry.tx = false;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (rosterSettings.callMode != "all")
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue