server/comments: fix missing score field

This commit is contained in:
rr- 2016-06-11 09:29:23 +02:00
parent 2e6e9b40b6
commit 5090e3f6c9

View file

@ -15,6 +15,7 @@ def serialize_comment(comment, authenticated_user, options=None):
'text': lambda: comment.text, 'text': lambda: comment.text,
'creationTime': lambda: comment.creation_time, 'creationTime': lambda: comment.creation_time,
'lastEditTime': lambda: comment.last_edit_time, 'lastEditTime': lambda: comment.last_edit_time,
'score': lambda: comment.score,
'ownScore': lambda: scores.get_score(comment, authenticated_user), 'ownScore': lambda: scores.get_score(comment, authenticated_user),
}, },
options) options)