Beispiel #1
0
def catbook_cat_info(id):
    if request.method == 'GET':
        cat = get_cat_by_id(id)
        return render_template("cat.html", cat=cat)
    else:
        add_vote(id)
        cat = get_cat_by_id(id)
        return render_template("cat.html", cat=cat)
Beispiel #2
0
def catbook_profile(cat_id):
	if request.method == 'GET':
		cat = get_cat_by_id(cat_id)
		return render_template(
		'cat.html',cat = cat)
	else:
		cat = get_cat_by_id(cat_id)
		update_votes(cat_id)
		return render_template(
		'cat.html',cat = cat)
def cats_route(id):
    cat = get_cat_by_id(id)
    if request.method == "GET":
        return render_template('cat.html', cat=cat)
    else:
        add_vote(cat.id)
        return render_template('cat.html', cat=cat)
Beispiel #4
0
def cats(id):

    cat = get_cat_by_id(id)
    return render_template(

        'cat.html',
        cat = cat

        )
Beispiel #5
0
def new_home(id):
    cat = get_cat_by_id(id)
    return render_template("cat.html", cat=cat)
Beispiel #6
0
def CAT_PAGE(id):
    name=get_cat_by_id(id)
    return render_template('cat.html', n=id,cat_name = name) 
Beispiel #7
0
def view_details(id):
    cats = get_cat_by_id(id)
    return render_template("cat.html", cat=cats)
Beispiel #8
0
def cat_page(id):
    cats = get_cat_by_id(id)
    return render_template("cat.html", cat=cats)