remove unnecessary gay shit

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-14 11:20:59 +02:00
parent 4a1da0380a
commit 135bd2c60c
2 changed files with 0 additions and 19 deletions

View File

@ -34,20 +34,6 @@ def vote_info_get(v, link):
downs = g.db.query(CommentVote).filter_by(comment_id=thing_id, vote_type=-1 ).order_by(CommentVote.created_utc).all()
if v.admin_level:
up_ids = [x[0] for x in g.db.query(CommentVote.user_id).filter_by(comment_id=thing_id, vote_type=1).order_by(CommentVote.created_utc).all()]
total_ups = g.db.query(func.sum(User.truecoins)).filter(User.id.in_(up_ids)).scalar()
total_ups = format(total_ups, ",") if total_ups else '0'
patrons_ups = g.db.query(User).filter(User.id.in_(up_ids), User.patron > 0).count()
return render_template("votes.html",
v=v,
thing=thing,
ups=ups,
downs=downs,
total_ups=total_ups,
patrons_ups=patrons_ups)
else: abort(400)
return render_template("votes.html",

View File

@ -20,11 +20,6 @@
<p><b>Upvotes: </b>{{ups | length}}</p>
<p><b>Downvotes: </b>{{downs | length}}</p>
{% if v.admin_level and (total_ups and patrons_ups) %}
<p><b>Total Truescore: </b>{{total_ups}}</p>
<p><b>Total Paypigs: </b>{{patrons_ups}}</p>
{% endif %}
<h2>Upvotes</h2>
<div class="overflow-x-auto">
<table class="table table-striped mb-5">