Start converting some enum-like strings to proper enums, plus global reformat

This commit is contained in:
Ian Renton
2026-09-02 08:37:13 +01:00
parent 5a6fc19ab5
commit 606cf1be68
24 changed files with 81 additions and 79 deletions
+3 -3
View File
@@ -8,8 +8,8 @@ from tornado import httputil
from tornado.web import Application
from core.config import ALLOW_SPOTTING, MAX_SPOT_AGE
from core.constants import ALL_MODES, BANDS, MODE_TYPES, PROPAGATION_MODES, SIGS
from core.enums import Continent
from core.constants import ALL_MODES, BANDS, PROPAGATION_MODES, SIGS
from core.enums import Continent, ModeType
from core.prometheus_metrics_handler import api_requests_counter
from core.utils import safe_json_dumps
@@ -84,7 +84,7 @@ class APIOptionsHandler(tornado.web.RequestHandler):
options = {
"bands": BANDS,
"modes": ALL_MODES,
"mode_types": MODE_TYPES,
"mode_types": [t.value for t in ModeType],
"sigs": SIGS,
"spot_providers": spot_providers,
"spot_providers_enabled_by_default": spot_providers_enabled_by_default,