def index(): posts = [dictify(post) for post in Post.all()] return render_template("index.html", posts=posts)