diff --git a/files/classes/comment.py b/files/classes/comment.py index 5a0554ee5..3a6fbf2a8 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -381,8 +381,9 @@ class Comment(Base): body += f'"> - {c.upvotes} votes' curr = self.total_choice_voted(v) - if curr: - body += f'' + if curr: curr = " value=" + str(curr[0].comment_id) + else: curr = '' + body += f'' for c in self.choices: body += f'''
- {c.upvotes} votes
' curr = self.total_choice_voted(v) - if curr: - body += f'' + if curr: curr = " value=" + str(curr[0].comment_id) + else: curr = '' + body += f'' for c in self.choices: body += f'''