Skip to content

Commit

Permalink
Treat all non-empty non-NORMAL spot types as qrt
Browse files Browse the repository at this point in the history
We use qrt strikethrough on all invalid spots, like TEST or QRT.
It's most straightforward to simply check for the normal type of spot,
which will either be unspecified, empty, or NORMAL.
  • Loading branch information
jeffkowalski committed Nov 6, 2024
1 parent 5a3a93a commit 1b82cc7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ async function enrichSpots(spots,
if (!["CW", "SSB", "FM", "FT8", "DATA"].includes(spot.modeType))
spot.modeType = "OTHER";
spot.details = getLocationDetailsFunc(spot);
spot.qrt = spot.type?.toLowerCase() === 'qrt';
spot.type = ("type" in spot) ? spot.type : null;
});

// find duplicates
Expand Down
2 changes: 1 addition & 1 deletion src/web/pota.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function updatePotaTable()

if (spot.duplicate)
row.classList.add('duplicate-row');
if (spot.qrt) {
if (spot.type && spot.type !== "" && spot.type !== "NORMAL") { // "" is a normal spot, other values are not
row.classList.add('duplicate-row');
row.classList.add('qrt-row');
}
Expand Down
2 changes: 1 addition & 1 deletion src/web/sota.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function updateSotaTable()

if (spot.duplicate)
row.classList.add('duplicate-row');
if (spot.qrt) {
if (spot.type && spot.type !== "" && spot.type !== "NORMAL") { // "" is a normal spot, other values are not
row.classList.add('duplicate-row');
row.classList.add('qrt-row');
}
Expand Down

0 comments on commit 1b82cc7

Please sign in to comment.