Just fixed a little thing that was bugging me
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user