Cleanup refactor.

This commit is contained in:
Michael Lazar
2016-10-31 13:50:41 -07:00
parent 9f5bd93e92
commit 6a395216a3
5 changed files with 27 additions and 36 deletions

View File

@@ -59,7 +59,7 @@ class SubscriptionPage(Page):
def select_subreddit(self):
"Store the selected subreddit and return to the subreddit page"
name = self.content.get(self.nav.absolute_index)['name']
name = self.get_selected_item()['name']
with self.term.loader('Loading page'):
content = SubredditContent.from_name(
self.reddit, name, self.term.loader)