Fix the web daemon's hot-reload module list
_webui re-imports and reloads its dependencies on every request. The repo split left two entries wrong: both the weather and station display slots pointed at astrape_oracle.classes.datasets, so the dataclasses were reloaded twice and the renderers -- which moved to this repo -- were never reloaded at all. Editing a display would have had no effect until a restart. The datasets module keeps its own slot, since the stores return those types. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -98,12 +98,16 @@ class AstrapeWebHandler(BaseHTTPRequestHandler):
|
|||||||
oracle_quality_display_module = import_module(
|
oracle_quality_display_module = import_module(
|
||||||
"astrape_dashboard.classes.displays.oracle_quality"
|
"astrape_dashboard.classes.displays.oracle_quality"
|
||||||
)
|
)
|
||||||
weather_display_module = import_module("astrape_oracle.classes.datasets")
|
datasets_module = import_module("astrape_oracle.classes.datasets")
|
||||||
|
weather_display_module = import_module(
|
||||||
|
"astrape_dashboard.classes.displays.weather"
|
||||||
|
)
|
||||||
weather_station_display_module = import_module(
|
weather_station_display_module = import_module(
|
||||||
"astrape_oracle.classes.datasets"
|
"astrape_dashboard.classes.displays.station"
|
||||||
)
|
)
|
||||||
webui_module = import_module("astrape_dashboard.classes.webui")
|
webui_module = import_module("astrape_dashboard.classes.webui")
|
||||||
reload(models_module)
|
reload(models_module)
|
||||||
|
reload(datasets_module)
|
||||||
reload(weather_display_module)
|
reload(weather_display_module)
|
||||||
reload(weather_station_display_module)
|
reload(weather_station_display_module)
|
||||||
reload(weather_store_module)
|
reload(weather_store_module)
|
||||||
|
|||||||
Reference in New Issue
Block a user