Just fixed a little thing that was bugging me

This commit is contained in:
Obosob
2015-07-30 09:10:21 +01:00
parent 68d5d99f57
commit f45fdd331a
2 changed files with 2 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ class BaseContent(object):
data['score'] = '{} pts'.format(sub.score)
data['author'] = name
data['permalink'] = sub.permalink
data['subreddit'] = strip_subreddit_url(sub.permalink)
data['subreddit'] = str(sub.subreddit)
data['flair'] = flair
data['url_full'] = sub.url

View File

@@ -198,6 +198,6 @@ class SubredditPage(BasePage):
row = n_title + offset + 2
if row in valid_rows:
add_line(win, u'{author}'.format(**data), row, 1, curses.A_BOLD)
add_line(win, u' {subreddit}'.format(**data), attr=Color.YELLOW)
add_line(win, u' /r/{subreddit}'.format(**data), attr=Color.YELLOW)
if data['flair']:
add_line(win, u' {flair}'.format(**data), attr=Color.RED)