From 9a05ce9512c2a868cb35f8ae1e078591a69373a2 Mon Sep 17 00:00:00 2001 From: tobywhughes Date: Mon, 2 Mar 2015 17:44:24 -0800 Subject: [PATCH 1/2] Added option to got to front page /new --- rtv/content.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rtv/content.py b/rtv/content.py index fd8dd74..1d20802 100644 --- a/rtv/content.py +++ b/rtv/content.py @@ -306,6 +306,9 @@ class SubredditContent(BaseContent): if name == 'all': sub = reddit.get_subreddit(name) + + if name == 'new': + return cls('New', reddit.get_new(limit=None), loader) else: From 6a5da9f1ec1305ce2fdf4a1e3ec3f90afc6772cb Mon Sep 17 00:00:00 2001 From: Toby Hughes Date: Tue, 3 Mar 2015 13:57:56 -0800 Subject: [PATCH 2/2] Update content.py Fixing the if/else of /new and /all --- rtv/content.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtv/content.py b/rtv/content.py index 1d20802..53856e3 100644 --- a/rtv/content.py +++ b/rtv/content.py @@ -304,11 +304,11 @@ class SubredditContent(BaseContent): if name == 'front': return cls('Front Page', reddit.get_front_page(limit=None), loader) - if name == 'all': - sub = reddit.get_subreddit(name) - if name == 'new': return cls('New', reddit.get_new(limit=None), loader) + + if name == 'all': + sub = reddit.get_subreddit(name) else: