From d791312579e547d0f4bdf1ce0b36275781c03811 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Fri, 7 Feb 2025 21:22:43 -0500 Subject: [PATCH] Update file structure for Flask --- app.py | 4 +++- style.css => static/style.css | 0 index.html => templates/index.html | 0 3 files changed, 3 insertions(+), 1 deletion(-) rename style.css => static/style.css (100%) rename index.html => templates/index.html (100%) diff --git a/app.py b/app.py index 94ce4b5..30b09d8 100644 --- a/app.py +++ b/app.py @@ -150,7 +150,9 @@ def update_status(): def home(): config = load_config() logger.debug(f"Loaded devices: {config['devices']}") - return render_template('index.html', devices=config['devices']) + devices = config['devices'] + logger.debug(f"Rendering template with devices: {devices}") + return render_template('index.html', devices=devices) @app.route('/api/status') def status(): diff --git a/style.css b/static/style.css similarity index 100% rename from style.css rename to static/style.css diff --git a/index.html b/templates/index.html similarity index 100% rename from index.html rename to templates/index.html