From 316a356811dcc60b77fe500b17e4d12dc9ed5f50 Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Sun, 21 Jun 2026 11:02:41 +0100 Subject: [PATCH 1/2] Docs for propagation modes --- server/handlers/api/options.py | 3 ++- templates/add_spot.html | 2 +- templates/alerts.html | 2 +- templates/bands.html | 4 ++-- templates/base.html | 10 +++++----- templates/conditions.html | 2 +- templates/map.html | 4 ++-- templates/spots.html | 4 ++-- templates/status.html | 2 +- webassets/apidocs/openapi.yml | 30 +++++++++++++++++++++++++++++- 10 files changed, 46 insertions(+), 17 deletions(-) diff --git a/server/handlers/api/options.py b/server/handlers/api/options.py index f9b66dd..4529e53 100644 --- a/server/handlers/api/options.py +++ b/server/handlers/api/options.py @@ -8,7 +8,7 @@ from tornado import httputil from tornado.web import Application from core.config import MAX_SPOT_AGE, ALLOW_SPOTTING -from core.constants import BANDS, ALL_MODES, MODE_TYPES, SIGS, CONTINENTS +from core.constants import BANDS, ALL_MODES, MODE_TYPES, SIGS, CONTINENTS, PROPAGATION_MODES from core.prometheus_metrics_handler import api_requests_counter from core.utils import serialize_everything @@ -42,6 +42,7 @@ class APIOptionsHandler(tornado.web.RequestHandler): "alert_sources": list( map(lambda p: p["name"], filter(lambda p: p["enabled"], self._status_data["alert_providers"]))), "continents": CONTINENTS, + "propagation_modes": PROPAGATION_MODES.values(), "max_spot_age": MAX_SPOT_AGE, "spot_allowed": ALLOW_SPOTTING} # If spotting to this server is enabled, "API" is another valid spot source even though it does not come from diff --git a/templates/add_spot.html b/templates/add_spot.html index 2088db5..fa4ddc4 100644 --- a/templates/add_spot.html +++ b/templates/add_spot.html @@ -76,7 +76,7 @@ - + diff --git a/templates/alerts.html b/templates/alerts.html index 3d40888..a019df2 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -75,7 +75,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index 2b5582a..600bf17 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -77,8 +77,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index b03764a..745727e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,6 @@ {% extends "skeleton.html" %} {% block head_extra %} - + @@ -10,10 +10,10 @@ - - - - + + + + {% end %} {% block body %}
diff --git a/templates/conditions.html b/templates/conditions.html index 8bd545b..19ad0b1 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index 77ef68f..5759bbd 100644 --- a/templates/map.html +++ b/templates/map.html @@ -95,8 +95,8 @@ - - + + diff --git a/templates/spots.html b/templates/spots.html index a8e8ef7..697c36c 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -116,8 +116,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index f84de02..0b95a4a 100644 --- a/templates/status.html +++ b/templates/status.html @@ -59,7 +59,7 @@ - + + diff --git a/templates/alerts.html b/templates/alerts.html index a019df2..1b0cfa5 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -75,7 +75,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index 600bf17..21577d0 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -77,8 +77,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index 745727e..4537825 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,6 @@ {% extends "skeleton.html" %} {% block head_extra %} - + @@ -10,10 +10,10 @@ - - - - + + + + {% end %} {% block body %}
diff --git a/templates/conditions.html b/templates/conditions.html index 19ad0b1..bc4edc2 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index 5759bbd..4dd5c21 100644 --- a/templates/map.html +++ b/templates/map.html @@ -95,8 +95,8 @@ - - + + diff --git a/templates/spots.html b/templates/spots.html index 697c36c..645d1ee 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -116,8 +116,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index 0b95a4a..8326fc0 100644 --- a/templates/status.html +++ b/templates/status.html @@ -59,7 +59,7 @@ - +