Add GUID. Closes #10

This commit is contained in:
Ian Renton
2025-09-29 20:42:53 +01:00
parent 60314c7d44
commit 36d7d6e4e1
2 changed files with 7 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
import json
import uuid
from dataclasses import dataclass
from datetime import datetime
@@ -15,6 +16,8 @@ from core.utils import infer_mode_family_from_mode, infer_band_from_freq, infer_
# Data class that defines a spot.
@dataclass
class Spot:
# Globally unique identifier for the spot
guid: str = str(uuid.uuid4())
# Callsign of the operator that has been spotted
dx_call: str = None
# Callsign of the operator that has spotted them