def index(): hottest = Video.hottest() newest = Video.newuploaded() return render_template('index.html', hottestvideos = hottest, newestvideos = newest)