fixxed imports, added state.py

This commit is contained in:
2026-02-16 14:49:18 +01:00
parent 6265683cce
commit f3679cbd29
6 changed files with 26 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# app/routes/admin.py
from flask import Blueprint, render_template, request, jsonify, redirect, url_for
from .. import current_config
from app.state import current_config
from app.utils.helpers import load_configs, load_default_sounds
admin_bp = Blueprint('admin', __name__)
+2 -1
View File
@@ -1,6 +1,7 @@
# app/routes/api.py
import pygame
from flask import Blueprint, jsonify, request
from .. import current_device, current_config, pygame
from app.state import current_device, current_config
api_bp = Blueprint('api', __name__)
+1 -1
View File
@@ -1,7 +1,7 @@
# app/routes/main.py
from flask import Blueprint, render_template, redirect, url_for, request, jsonify
from .. import current_config
from app.utils.helpers import load_configs, load_default_sounds
from app.state import current_config, reset_state
main_bp = Blueprint('main', __name__)