Exemple #1
0
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)
Exemple #2
0
def get_recipe(id):
    recipe = db.get_recipe(g.db, id)
    return render_template('show_recipe.html', recipe=recipe)