From 2464775210e526d613805e4d06cc113655efffe5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 7 Feb 2022 14:38:45 +0200 Subject: [PATCH] cxv --- files/classes/comment.py | 5 +++-- files/classes/submission.py | 5 +++-- files/classes/votes.py | 8 ++++---- files/routes/votes.py | 2 ++ 4 files changed, 12 insertions(+), 8 deletions(-) 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'''