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)
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)
def cats(id): cat = get_cat_by_id(id) return render_template( 'cat.html', cat = cat )
def new_home(id): cat = get_cat_by_id(id) return render_template("cat.html", cat=cat)
def CAT_PAGE(id): name=get_cat_by_id(id) return render_template('cat.html', n=id,cat_name = name)
def view_details(id): cats = get_cat_by_id(id) return render_template("cat.html", cat=cats)
def cat_page(id): cats = get_cat_by_id(id) return render_template("cat.html", cat=cats)