Update as_flask