Added functionality for flairs #28

This commit is contained in:
Shawn Hind
2015-03-11 16:54:18 -04:00
parent bc9e36f7af
commit a4d531b4e7
3 changed files with 16 additions and 1 deletions

View File

@@ -135,5 +135,8 @@ class SubredditPage(BasePage):
if row in valid_rows:
text = '{author}'.format(**data)
win.addnstr(row, 1, text, n_cols-1, curses.A_BOLD)
if data['flair'] != None:
text = ' {flair}'.format(**data)
win.addnstr(text, n_cols - 1, curses.A_BOLD | Color.GREEN)
text = ' {subreddit}'.format(**data)
win.addnstr(text, n_cols - win.getyx()[1], Color.YELLOW)