diff --git a/files/classes/submission.py b/files/classes/submission.py index f9c11fc90d..95ce45229c 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -387,7 +387,7 @@ class Submission(Base): return url @lazy - def realbody(self, v): + def realbody(self, v, listing=False): if self.club and not (v and (v.paid_dues or v.id == self.author_id)): return f"
{CC} ONLY
" body = self.body_html or "" @@ -407,43 +407,44 @@ class Submission(Base): self.upvotes += amount g.db.add(self) - for c in self.options: - body += f'' + if not listing: + for c in self.options: + body += f'' - if self.choices: - curr = self.total_choice_voted(v) - if curr: curr = " value=" + str(curr.comment_id) - else: curr = '' - body += f'' + if self.choices: + curr = self.total_choice_voted(v) + if curr: curr = " value=" + str(curr.comment_id) + else: curr = '' + body += f'' - for c in self.choices: - body += f'''' + for c in self.choices: + body += f'''' - for c in self.bet_options: - body += f'''