Fix a bug where solar conditions and status data were not properly persisted to disk between restarts. Release v2.0.5

This commit is contained in:
Ian Renton
2026-08-29 09:17:24 +01:00
parent 8451ca2727
commit ba56acd7ac
18 changed files with 89 additions and 56 deletions
+3 -3
View File
@@ -111,7 +111,7 @@ class WebServer:
(
r"/api/v2/solar",
APISolarConditionsHandler,
{"solar_conditions": self._data_store.solar_conditions, **handler_opts},
{"solar_conditions": self._data_store.solar_conditions.get(), **handler_opts},
),
(
r"/api/v2/dxstats",
@@ -121,12 +121,12 @@ class WebServer:
(
r"/api/v2/options",
APIOptionsHandler,
{"status_data": self._data_store.status_data, **handler_opts},
{"status_data": self._data_store.status.get(), **handler_opts},
),
(
r"/api/v2/status",
APIStatusHandler,
{"status_data": self._data_store.status_data, **handler_opts},
{"status_data": self._data_store.status.get(), **handler_opts},
),
(r"/api/v2/lookup/call", APILookupCallHandler, {**handler_opts}),
(r"/api/v2/lookup/sigref", APILookupSIGRefHandler, {**handler_opts}),