def view_rss_index(request): """Index of available RSS feeds""" feeds = [(name, feed.description) for name, feed in get_feeds()] return direct_to_template(request, 'memebot/rss-index.html', {'feeds': feeds})
def get_max_links(): from gruntle.memebot.feeds import get_feeds return max([getattr(f[1], 'max_links', 0) for f in get_feeds()] + [MIN_LINKS])
def get_max_links(): from gruntle.memebot.feeds import get_feeds return max([getattr(f[1], "max_links", 0) for f in get_feeds()] + [MIN_LINKS])
def view_rss_index(request): """Index of available RSS feeds""" feeds = [(name, feed.description) for name, feed in get_feeds()] return direct_to_template(request, "memebot/rss-index.html", {"feeds": feeds})