@app.before_request
def before_request():
    check_session_limit()
    g.db = connect_db(app.config['DATABASE'])
executes functions before all requests
dataset/ETHPy150Open claudyus/LXC-Web-Panel/lwp/app.py/before_request