Use the same name for the html field everywhere

This commit is contained in:
codesoap
2018-08-19 11:59:03 +02:00
parent 14bbb49460
commit 7e3788df0c
2 changed files with 4 additions and 6 deletions

View File

@@ -148,7 +148,7 @@ class Content(object):
data['type'] = 'Comment'
data['level'] = comment.nested_level
data['body'] = comment.body
data['body_html'] = comment.body_html
data['html'] = comment.body_html
data['created'] = cls.humanize_timestamp(comment.created_utc)
data['score'] = '{0} pts'.format(
'-' if comment.score_hidden else comment.score)
@@ -218,7 +218,7 @@ class Content(object):
data['type'] = 'Submission'
data['title'] = sub.title
data['text'] = sub.selftext
data['text_html'] = sub.selftext_html
data['html'] = sub.selftext_html
data['created'] = cls.humanize_timestamp(sub.created_utc)
data['created_long'] = cls.humanize_timestamp(sub.created_utc, True)
data['comments'] = '{0} comments'.format(sub.num_comments)