def edit_recipe(id): if not session.get('logged_in'): abort(401) recipe = db.get_recipe(g.db, id) return render_template('edit_recipe.html', recipe=recipe)
def get_recipe(id): recipe = db.get_recipe(g.db, id) return render_template('show_recipe.html', recipe=recipe)