From aa2c90c893bf379a818c4d16c66f986fb54a59d6 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 29 Oct 2023 15:13:05 +0300 Subject: [PATCH] thing -> option in poll_votes --- files/routes/polls.py | 4 ++-- files/templates/poll_votes.html | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/files/routes/polls.py b/files/routes/polls.py index 170d08b54..3a2f6d96d 100644 --- a/files/routes/polls.py +++ b/files/routes/polls.py @@ -147,7 +147,7 @@ def option_votes(option_id, v): return render_template("poll_votes.html", v=v, - thing=option, + option=option, ups=ups, total_ts=total_ts, total_patrons=total_patrons, @@ -189,7 +189,7 @@ def option_votes_comment(option_id, v): return render_template("poll_votes.html", v=v, - thing=option, + option=option, ups=ups, total_ts=total_ts, total_patrons=total_patrons, diff --git a/files/templates/poll_votes.html b/files/templates/poll_votes.html index ee2c98050..be9dd10fe 100644 --- a/files/templates/poll_votes.html +++ b/files/templates/poll_votes.html @@ -1,14 +1,14 @@ {% extends "default.html" %} {% block pagetitle %}Poll Votes{% endblock %} {% block content %} -{% if thing %} +{% if option %} -

{{thing.body_html | safe}} - {{ups | length}} {% if thing.exclusive == 2 %}bets{% else %}votes{% endif %}

+

{{option.body_html | safe}} - {{ups | length}} {% if option.exclusive == 2 %}bets{% else %}votes{% endif %}

-

Link: {{thing.parent.permalink}}

-

Author: @{{thing.parent.author_name}}

-

Author Created At:

-

Author Truescore: {{"{:,}".format(thing.parent.author.truescore)}}

+

Link: {{option.parent.permalink}}

+

Author: @{{option.parent.author_name}}

+

Author Created At:

+

Author Truescore: {{"{:,}".format(option.parent.author.truescore)}}

Total voter truescore: {{total_ts}}

{% if total_patrons != None %}

Total {{patron}}s: {{total_patrons}} | ${{total_money}}