Give sort commands more generic sounding names

This commit is contained in:
Michael Lazar
2019-02-18 20:23:57 -05:00
parent 65d7afc92c
commit fc9510c295
4 changed files with 25 additions and 23 deletions

View File

@@ -37,23 +37,23 @@ class SubmissionPage(Page):
self.nav = Navigator(self.content.get, page_index=-1)
self.selected_subreddit = None
@SubmissionController.register(Command('SORT_HOT'))
@SubmissionController.register(Command('SORT_1'))
def sort_content_hot(self):
self.refresh_content(order='hot')
@SubmissionController.register(Command('SORT_TOP'))
@SubmissionController.register(Command('SORT_2'))
def sort_content_top(self):
self.refresh_content(order='top')
@SubmissionController.register(Command('SORT_RISING'))
@SubmissionController.register(Command('SORT_3'))
def sort_content_rising(self):
self.refresh_content(order='rising')
@SubmissionController.register(Command('SORT_NEW'))
@SubmissionController.register(Command('SORT_4'))
def sort_content_new(self):
self.refresh_content(order='new')
@SubmissionController.register(Command('SORT_CONTROVERSIAL'))
@SubmissionController.register(Command('SORT_5'))
def sort_content_controversial(self):
self.refresh_content(order='controversial')