Remove colours from API #7

This commit is contained in:
Ian Renton
2025-09-29 20:57:17 +01:00
parent 269e67225c
commit ac6d4d40cd
4 changed files with 18 additions and 36 deletions

View File

@@ -8,8 +8,4 @@ class Band:
# Start frequency, in kHz
start_freq: float
# Stop frequency, in kHz
end_freq: float
# Colour to use for this band, as per PSK Reporter
color: str
# Contrast colour to use for text against a background of the band colour
contrast_color: str
end_freq: float

View File

@@ -55,10 +55,6 @@ class Spot:
freq: float = None
# Band, defined by the frequency, e.g. "40m" or "70cm"
band: str = None
# Colour to use for the band
band_color: str = None
# Contrast colour to use for text on a background of band_color
band_contrast_color: str = None
# Time of the spot
time: datetime = None
# Time that this software received the spot. This is used with the "since_received" call to our API to receive all
@@ -121,8 +117,6 @@ class Spot:
if self.freq and not self.band:
band = infer_band_from_freq(self.freq)
self.band = band.name
self.band_color = band.color
self.band_contrast_color = band.contrast_color
# Mode from comments, mode family from mode
if self.comment and not self.mode: