Add stickied tag for stickied posts.

This commit is contained in:
5225225
2016-01-09 08:56:58 +00:00
parent e7c910e8fc
commit 7b95ee240e
2 changed files with 4 additions and 0 deletions

View File

@@ -191,6 +191,9 @@ 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} {comments} '.format(**data))
if data['stickied']:
text, attr = self.term.stickied
self.term.add_line(win, text, attr=attr)
if data['gold']:
text, attr = self.term.guilded