Exemple #1
0
def movie7():
    form7 = forms.RatingForm()
    movieName = movieList[6]
    if form7.validate_on_submit():
        ratingsList.append(form7.rating.data)
        return redirect('/movie8')
    return render_template('ratings.html', movieName = movieName, form=form7)
Exemple #2
0
def movie19():
    form19 = forms.RatingForm()
    movieName = movieList[18]
    if form19.validate_on_submit():
        ratingsList.append(form19.rating.data)
        return redirect('/movie20')
    return render_template('ratings.html', movieName = movieName, form=form19)
Exemple #3
0
def movie20():
    form20 = forms.RatingForm()
    movieName = movieList[19]
    if form20.validate_on_submit():
        ratingsList.append(form20.rating.data)
        return redirect('/recommend')
    return render_template('ratings.html', movieName = movieName, form=form20)
Exemple #4
0
def movie10():
    form10 = forms.RatingForm()
    movieName = movieList[9]
    if form10.validate_on_submit():
        ratingsList.append(form10.rating.data)
        return redirect('/movie11')
    return render_template('ratings.html', movieName = movieName, form=form10)