Esempio n. 1
0
def avg():  # url_for
    movie = model.Movie.get(int(request.form["movie_id"]))
    avg = movies.average_rating(int(request.form["movie_id"]))
    return render_template("avg.html", movie=movie, avg=avg)
Esempio n. 2
0
def movie_details():
	movie_id = int(request.form["movie_id"])
	average_rating = movies.average_rating(movie_id)
	md = Movies.get(movie_id)
	return render_template("details.html", md=md, avg = average_rating)