mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-10-27 00:39:26 +00:00
14 lines
495 B
Python
14 lines
495 B
Python
from dataclasses import dataclass
|
|
|
|
# Data class that defines a Special Interest Group.
|
|
@dataclass
|
|
class SIG:
|
|
# SIG name, e.g. "POTA"
|
|
name: str
|
|
# Description, e.g. "Parks on the Air"
|
|
description: str
|
|
# Icon to use for it, from the Font Awesome set. This is fairly opinionated but is here to help the Spothole web UI
|
|
# and Field Spotter. Does not include the "fa-" prefix.
|
|
icon: str
|
|
# Regex matcher for references, e.g. for POTA r"[A-Z]{2}\-\d+".
|
|
ref_regex: str |