def feeds_detail(feeds_id): db = FeedsDb(config) title = db.fetch(feeds_id) rows = None if title: d = feedparser.parse(title[2]) rows = d.entries feed_list=db.fetch_all_feeds() #db.addentries(rows) return template('index', t_rows = rows, t_feedlist = feed_list, t_feeds_id = feeds_id)
def get_list(): db = FeedsDb(config) feed_list=db.fetch_all_feeds() return template('list', t_feedlist = feed_list)