fixxed imports, added state.py
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user