From 122e071169ea7a30e0d57c232771fa7ea342e3dc Mon Sep 17 00:00:00 2001 From: oberon Date: Mon, 16 Feb 2026 18:54:03 +0100 Subject: [PATCH] fixxes --- app/routes/main.py | 4 ++-- static/.DS_Store | Bin 6148 -> 6148 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/main.py b/app/routes/main.py index 0483373..de1cbf9 100644 --- a/app/routes/main.py +++ b/app/routes/main.py @@ -1,5 +1,5 @@ # app/routes/main.py -from flask import Blueprint, render_template, redirect, url_for, request, jsonify, send_from_directory +from flask import Blueprint, render_template, redirect, url_for, request, jsonify, send_from_directory, current_app from app.utils.helpers import load_configs, load_default_sounds from app.state import current_config, reset_state @@ -21,7 +21,7 @@ def index(): @main_bp.route('/configs/') def serve_config_file(filename): - return send_from_directory(app.config['CONFIG_DIR'], filename) + return send_from_directory(current_app.config['CONFIG_DIR'], filename) @main_bp.route('/load_config/') diff --git a/static/.DS_Store b/static/.DS_Store index 0d962943b4217fdb3546088f0d4a02528777b2a1..382ff5d2d2a02e6ca1be885b2ac86ffac027f00b 100644 GIT binary patch delta 27 jcmZoMXfc>z!^kkvR(@mRGWLlDtdk8yST=KW{Nx7!dZP%D delta 29 lcmZoMXfc>z!^k+%R-Tb@W8yOQi3Kc^4MbQrb94OU2LOQ>2$KK+