Master setting

This commit is contained in:
2025-06-06 14:43:08 +02:00
parent 46b56369c2
commit 1cbfab0c2f
3 changed files with 1 additions and 3 deletions

View File

@@ -2,7 +2,6 @@ from flask import Blueprint, Flask, render_template
from flask_login import login_required
from models import SiteSettings
import os
import logging
def init_app(app: Flask):
# Create blueprints
@@ -33,7 +32,6 @@ def init_app(app: Flask):
# Add MASTER environment variable to all templates
@app.context_processor
def inject_master():
logging.warning("DEBUG: MASTER = %s", os.environ.get('MASTER'))
return dict(is_master=os.environ.get('MASTER', 'false').lower() == 'true')
# Register blueprints