Update content.py

Fixing the if/else of /new and /all
This commit is contained in:
Toby Hughes
2015-03-03 13:57:56 -08:00
parent 9a05ce9512
commit 6a5da9f1ec

View File

@@ -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: