From 27ce5af7147750d2f1613419259d5bf92896db0b Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 5 Aug 2026 23:52:24 +0000 Subject: [PATCH] fix(web): remove dead weather/stocks partial routes that returned 500 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The partial dispatcher still routed 'weather' and 'stocks' to loaders rendering v3/partials/weather.html and stocks.html — templates that no longer exist since weather and stocks became store plugins. Requesting either partial raised TemplateNotFound, which the catch-all turned into a 500. No template or JS references these partials (the only 'weather' hit in the front end is a plugin-store category filter option), so the branches and both loader functions are removed; unknown partials now fall through to the existing 404 handler. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01SXb4mKcAkVaxkeTb3YnAdr --- web_interface/blueprints/pages_v3.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/web_interface/blueprints/pages_v3.py b/web_interface/blueprints/pages_v3.py index f25752ce..958683c8 100644 --- a/web_interface/blueprints/pages_v3.py +++ b/web_interface/blueprints/pages_v3.py @@ -180,10 +180,6 @@ def load_partial(partial_name): return _load_durations_partial() elif partial_name == 'schedule': return _load_schedule_partial() - elif partial_name == 'weather': - return _load_weather_partial() - elif partial_name == 'stocks': - return _load_stocks_partial() elif partial_name == 'plugins': return _load_plugins_partial() elif partial_name == 'fonts': @@ -464,28 +460,6 @@ def _load_schedule_partial(): return "Error loading partial", 500 -def _load_weather_partial(): - """Load weather configuration partial""" - try: - if pages_v3.config_manager: - main_config = pages_v3.config_manager.load_config() - return render_template('v3/partials/weather.html', - main_config=main_config) - except Exception as e: - logger.error("Error loading partial", exc_info=True) - return "Error loading partial", 500 - -def _load_stocks_partial(): - """Load stocks configuration partial""" - try: - if pages_v3.config_manager: - main_config = pages_v3.config_manager.load_config() - return render_template('v3/partials/stocks.html', - main_config=main_config) - except Exception as e: - logger.error("Error loading partial", exc_info=True) - return "Error loading partial", 500 - def _load_plugins_partial(): """Load plugins management partial""" try: