Пример #1
0
def getUpcomingMovies(limit = 10, offset = 0):

	movies = Movie.upcoming()[offset : offset + limit]
	movieInfo = []
	for movie in movies:
		movieInfo.append(getMinimalistMovieInfo(movie))

	return {'upcoming' : movieInfo}
Пример #2
0
def upcoming():
  res = Movie.upcoming()
  return render_template('movies.html', title='Upcoming | Movies', pageActive='movies', movies=res[0:15])