mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Integrate the possibility to create a minimal app for auxillary functions.
This commit is contained in:
		@@ -15,12 +15,16 @@ mail = Mail()
 | 
			
		||||
socketio = SocketIO()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def create_app(config_name):
 | 
			
		||||
def create_app(config_name, main=True):
 | 
			
		||||
    app = Flask(__name__)
 | 
			
		||||
    app.config.from_object(config[config_name])
 | 
			
		||||
 | 
			
		||||
    config[config_name].init_app(app)
 | 
			
		||||
    db.init_app(app)
 | 
			
		||||
 | 
			
		||||
    if not main:
 | 
			
		||||
        return app
 | 
			
		||||
 | 
			
		||||
    login_manager.init_app(app)
 | 
			
		||||
    mail.init_app(app)
 | 
			
		||||
    # scheduler.init_app(app)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user