This commit is contained in:
2026-06-07 01:11:37 +02:00
parent 17f7a00bd7
commit 16c04fc12b
13 changed files with 418 additions and 52 deletions
+2
View File
@@ -17,6 +17,7 @@ const hunterLogURL = "https://api.pota.app/user/logbook?hunterOnly=1&page=%d&siz
// a park activator, carrying the park reference to stamp onto the local QSO.
type HunterQSO struct {
Worked string `json:"worked"` // activator callsign (the station worked)
Hunter string `json:"hunter"` // YOUR callsign for this hunt (may vary: F4BPO, XV9Q…)
Date time.Time `json:"date"` // QSO date/time (UTC)
Band string `json:"band"` // ADIF band, e.g. "20m"
Mode string `json:"mode"` // logged mode
@@ -95,6 +96,7 @@ func FetchHunterLog(ctx context.Context, token string, logf func(string, ...any)
}
out = append(out, HunterQSO{
Worked: act,
Hunter: strings.ToUpper(strings.TrimSpace(e.WorkedCallsign)), // your call for this hunt
Date: parseHunterTime(e.QSODateTime),
Band: strings.ToLower(strings.TrimSpace(e.Band)),
Mode: strings.ToUpper(strings.TrimSpace(e.LoggedMode)),