def today(web): rtorrent = RTorrent() torrents, history = rtorrent.today() template( "index.tpl", torrents=torrents, queue=rtorrent.get_queue(), history=history, status=rtorrent.get_status(), )
def archives(web): rtorrent = RTorrent() template("index.tpl", history=rtorrent.archives(), status=rtorrent.get_status())