MobileBlur

Diff
Login

Differences From Artifact [b47f0eada4]:

To Artifact [353169fb7a]:


5
6
7
8
9
10
11

12
13
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)

def mark_read():

    newsblur.mark_feed_as_read(request.vars["feed"])
    redirect(URL("default", "index"))







>
|

5
6
7
8
9
10
11
12
13
14
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)

def mark_read():
    if len(request.args) > 0:
        newsblur.mark_feed_as_read(request.args[0])
    redirect(URL("default", "index"))