From ed60cafb24ba1ae8e8748eec6c46affa27a576d2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 6 Sep 2022 00:56:21 +0200 Subject: [PATCH] make the poll code make a little more sense --- files/classes/comment.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 131c13574..317ae03dd 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -369,20 +369,20 @@ class Comment(Base): else: curr = '' body += f'' - for c in self.options: - if c.exclusive: - body += f'''
' + body += f''' onchange="poll_vote('{o.id}', 'comment')"''' + else: body += f''' onchange="poll_vote_no_v('{o.id}', '{self.id}')"''' + body += f'''>' if self.author.sig_html and (self.author_id == MOOSE_ID or (not self.ghost and not (v and (v.sigs_disabled or v.poor)))): body += f"
{self.author.sig_html}"