MobileBlur

feeds.py at [cbc0649388]
Login

feeds.py at [cbc0649388]

File applications/mobileblur/controllers/feeds.py artifact 61898c0aad part of check-in cbc0649388


# -*- coding: utf-8 -*-

from pprint import pprint

def view():
    stories = newsblur.feed(request.args[0])["stories"]
    feeds = newsblur.feeds(flat=True)["feeds"]
    feed = [feed for feed in feeds.itervalues() if feed["id"]==int(request.args[0])][0]
    return dict(stories=stories, feed=feed)