📚 Improved code organization and structure in backend modules 🚧🔧
This commit is contained in:
@@ -246,7 +246,7 @@ def get_environment_type():
|
||||
# Windows-spezifische Fixes
|
||||
if os.name == 'nt':
|
||||
try:
|
||||
from utils.windows_fixes import get_windows_thread_manager
|
||||
from utils.core_system import get_windows_thread_manager
|
||||
print("[OK] Windows-Fixes (sichere Version) geladen")
|
||||
except ImportError as e:
|
||||
get_windows_thread_manager = None
|
||||
@@ -259,7 +259,7 @@ from models import init_database, create_initial_admin, User, get_db_session
|
||||
from utils.logging_config import setup_logging, get_logger, log_startup_info
|
||||
from utils.job_scheduler import JobScheduler, get_job_scheduler
|
||||
from utils.queue_manager import start_queue_manager, stop_queue_manager
|
||||
from utils.settings import SECRET_KEY, SESSION_LIFETIME
|
||||
from utils.utilities_collection import SECRET_KEY, SESSION_LIFETIME
|
||||
|
||||
# Blueprints importieren
|
||||
from blueprints.auth import auth_blueprint
|
||||
@@ -377,7 +377,7 @@ def apply_production_config(app):
|
||||
app_logger.info("[PRODUCTION] Aktiviere Production-Konfiguration für Mercedes-Benz TBA")
|
||||
|
||||
# Dynamische Werte setzen
|
||||
from utils.settings import SECRET_KEY, SESSION_LIFETIME
|
||||
from utils.utilities_collection import SECRET_KEY, SESSION_LIFETIME
|
||||
ProductionConfig.SECRET_KEY = os.environ.get('SECRET_KEY') or SECRET_KEY
|
||||
ProductionConfig.PERMANENT_SESSION_LIFETIME = SESSION_LIFETIME
|
||||
|
||||
@@ -431,7 +431,7 @@ def apply_development_config(app):
|
||||
app_logger.info("[DEVELOPMENT] Aktiviere Development-Konfiguration")
|
||||
|
||||
# Dynamische Werte setzen
|
||||
from utils.settings import SECRET_KEY, SESSION_LIFETIME
|
||||
from utils.utilities_collection import SECRET_KEY, SESSION_LIFETIME
|
||||
DevelopmentConfig.SECRET_KEY = os.environ.get('SECRET_KEY') or SECRET_KEY
|
||||
DevelopmentConfig.PERMANENT_SESSION_LIFETIME = SESSION_LIFETIME
|
||||
|
||||
|
Reference in New Issue
Block a user