@app.teardown_request
def teardown_request(exception):
    if hasattr(g, 'db'):
        g.db.close()
cull the digest history
dataset/ETHPy150Open claudyus/LXC-Web-Panel/lwp/app.py/teardown_request--crossover with--dataset/ETHPy150Open jupyter/jupyter_client/jupyter_client/session.py/Session._cull_digest_history