def index(): torrents = QueueEntry.select().reversed() return render_template('index.html', torrents=torrents)