From 70f5df4cc49caf37a7a807c0b3747d481023089a Mon Sep 17 00:00:00 2001 From: rpotter6298 Date: Sun, 30 Aug 2026 14:34:35 +0200 Subject: [PATCH] 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) --- astrape_dashboard/scripts/daemons/web_daemon.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/astrape_dashboard/scripts/daemons/web_daemon.py b/astrape_dashboard/scripts/daemons/web_daemon.py index 73692e8..fc0301f 100644 --- a/astrape_dashboard/scripts/daemons/web_daemon.py +++ b/astrape_dashboard/scripts/daemons/web_daemon.py @@ -98,12 +98,16 @@ class AstrapeWebHandler(BaseHTTPRequestHandler): oracle_quality_display_module = import_module( "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( - "astrape_oracle.classes.datasets" + "astrape_dashboard.classes.displays.station" ) webui_module = import_module("astrape_dashboard.classes.webui") reload(models_module) + reload(datasets_module) reload(weather_display_module) reload(weather_station_display_module) reload(weather_store_module)