From f45fdd331a14b3de4589cc8b18e123fb50398e5a Mon Sep 17 00:00:00 2001 From: Obosob Date: Thu, 30 Jul 2015 09:10:21 +0100 Subject: [PATCH 1/2] Just fixed a little thing that was bugging me --- rtv/content.py | 2 +- rtv/subreddit.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rtv/content.py b/rtv/content.py index 65b7c49..342bfde 100644 --- a/rtv/content.py +++ b/rtv/content.py @@ -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 diff --git a/rtv/subreddit.py b/rtv/subreddit.py index 03501ac..5c4491b 100644 --- a/rtv/subreddit.py +++ b/rtv/subreddit.py @@ -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) From fa7fc3fa1b2c5469a1c7ed8d0086cbc7f0fb9c3d Mon Sep 17 00:00:00 2001 From: Obosob Date: Thu, 30 Jul 2015 09:11:02 +0100 Subject: [PATCH 2/2] add setuptools intermediate build filed to .gitignore --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ff8e58e..8d95405 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ .* *.pyc -scripts/* +scripts +build +dist +rtv.egg-info