Added a [Comment] tag to the subreddit view and added cassettes

This commit is contained in:
Michael Lazar
2017-06-08 00:01:58 -04:00
parent 3bb50fc9a9
commit 57064a7b36
16 changed files with 10361 additions and 5526 deletions

View File

@@ -260,9 +260,11 @@ class SubredditPage(Page):
text, attr = self.term.get_arrow(data['likes'])
self.term.add_line(win, text, attr=attr)
self.term.add_line(win, ' {created} '.format(**data))
text, attr = '-', curses.A_BOLD
self.term.add_line(win, text, attr=attr)
self.term.add_line(win, ' {comments} '.format(**data))
if data['comments'] is not None:
text, attr = '-', curses.A_BOLD
self.term.add_line(win, text, attr=attr)
self.term.add_line(win, ' {comments} '.format(**data))
if data['saved']:
text, attr = '[saved]', Color.GREEN