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