def index(page=1): """ Fetch all Movies """ movies = db.session.query(Decoding.movie, Decoding.image_decoded_at) movies = movies.distinct(Decoding.movie).group_by(Decoding.movie) movies = paginate(movies, page, 10, False) return render_template("movies/index.html", movies=movies)
def index(page=1): """ Fetch all Movies from Decoding table """ terms = db.session.query(Decoding.term).distinct() terms = paginate(terms, page, 10, False) return render_template( "terms/index.html", terms=terms)