Merge pull request #129 from obosob/pr_misc

Just a couple of little things
This commit is contained in:
michael-lazar
2015-08-10 01:46:54 -07:00
3 changed files with 6 additions and 3 deletions

5
.gitignore vendored
View File

@@ -1,3 +1,6 @@
.* .*
*.pyc *.pyc
scripts/* scripts
build
dist
rtv.egg-info

View File

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

View File

@@ -205,6 +205,6 @@ class SubredditPage(BasePage):
row = n_title + offset + 2 row = n_title + offset + 2
if row in valid_rows: if row in valid_rows:
add_line(win, u'{author}'.format(**data), row, 1, curses.A_BOLD) 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']: if data['flair']:
add_line(win, u' {flair}'.format(**data), attr=Color.RED) add_line(win, u' {flair}'.format(**data), attr=Color.RED)