diff --git a/src/backend/services/awards.service.js b/src/backend/services/awards.service.js index 7179cbf..22bc71a 100644 --- a/src/backend/services/awards.service.js +++ b/src/backend/services/awards.service.js @@ -239,6 +239,7 @@ async function calculateDOKAwardProgress(userId, award, options = {}) { qsoDate: qso.qsoDate, timeOn: qso.timeOn, band: qso.band, + satName: qso.satName, confirmed: true, }); } @@ -368,6 +369,7 @@ async function calculatePointsAwardProgress(userId, award, options = {}) { qsoDate: qso.qsoDate, timeOn: qso.timeOn, band: qso.band, + satName: qso.satName, confirmed: true, }); } @@ -412,6 +414,7 @@ async function calculatePointsAwardProgress(userId, award, options = {}) { qsoDate: qso.qsoDate, timeOn: qso.timeOn, band: qso.band, + satName: qso.satName, confirmed: true, }); } @@ -450,6 +453,7 @@ async function calculatePointsAwardProgress(userId, award, options = {}) { qsoDate: qso.qsoDate, timeOn: qso.timeOn, band: qso.band, + satName: qso.satName, confirmed: true, }], }); @@ -759,6 +763,7 @@ export async function getAwardEntityBreakdown(userId, awardId) { qsoDate: qso.qsoDate, timeOn: qso.timeOn, band: qso.band, + satName: qso.satName, confirmed: true, }); } diff --git a/src/frontend/src/routes/awards/[id]/+page.svelte b/src/frontend/src/routes/awards/[id]/+page.svelte index 9e3e9a2..854252f 100644 --- a/src/frontend/src/routes/awards/[id]/+page.svelte +++ b/src/frontend/src/routes/awards/[id]/+page.svelte @@ -118,7 +118,9 @@ const entityData = entityMap.get(entityName); - const band = entity.band || 'Unknown'; + // Check if this is a satellite QSO - use "SAT" instead of band + const isSatellite = entity.qsos && entity.qsos.some(qso => qso.satName); + const band = isSatellite ? 'SAT' : (entity.band || 'Unknown'); if (isMixedMode) { // Mixed Mode: aggregate by band only, collect all QSOs across modes @@ -209,7 +211,9 @@ const entityData = entityMap.get(entityName); - const band = entity.band || 'Unknown'; + // Check if this is a satellite QSO - use "SAT" instead of band + const isSatellite = entity.qsos && entity.qsos.some(qso => qso.satName); + const band = isSatellite ? 'SAT' : (entity.band || 'Unknown'); if (isMixedMode) { // Mixed Mode: aggregate by band only