def shutdown_session(ex=None): """Tears down Sqlalchemy session""" db_session.remove()
def shutdown_session(exception=None): db_session.remove()
def shutdown_session(exception=None): """Flask will automatically remove database sessions at the end of the request or when the application shuts down. """ db_session.remove()