mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-20 22:37:44 +00:00
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:
+3
-3
@@ -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}),
|
||||
|
||||
Reference in New Issue
Block a user