MobileBlur

default.py at [b74e6c434b]
Login

default.py at [b74e6c434b]

File applications/mobileblur/controllers/default.py artifact f7fe7a35c9 part of check-in b74e6c434b


from pprint import pprint

def index():
    raw_feeds = newsblur.feeds(flat=True)["feeds"]
    feeds = {}
    for feed in raw_feeds.itervalues():
        for i in range(threshold, 2):
            if feed[thresholds[i]] > 0:
                feeds[feed["feed_title"]] = feed
                break

    pprint(feeds)
    return dict(feeds=feeds, threshold=threshold)