def getUpcomingMovies(limit = 10, offset = 0): movies = Movie.upcoming()[offset : offset + limit] movieInfo = [] for movie in movies: movieInfo.append(getMinimalistMovieInfo(movie)) return {'upcoming' : movieInfo}
def upcoming(): res = Movie.upcoming() return render_template('movies.html', title='Upcoming | Movies', pageActive='movies', movies=res[0:15])