master
Aevann1 2021-11-06 18:09:29 +02:00
parent 32ebd3f6d8
commit 55b95cb4b6
2 changed files with 4 additions and 4 deletions

View File

@ -156,11 +156,11 @@ def transfer_coins(v, username):
def leaderboard(v): def leaderboard(v):
users = g.db.query(User) users = g.db.query(User)
users1 = users.order_by(User.coins.desc()).limit(25).all() users1 = users.order_by(User.coins.desc()).limit(25).all()
users2 = users.order_by(User.stored_subscriber_count.desc()).limit(10).all() users2 = users.order_by(User.stored_subscriber_count.desc()).limit(15).all()
users3 = users.order_by(User.post_count.desc()).limit(10).all() users3 = users.order_by(User.post_count.desc()).limit(10).all()
users4 = users.order_by(User.comment_count.desc()).limit(10).all() users4 = users.order_by(User.comment_count.desc()).limit(10).all()
users5 = users.order_by(User.received_award_count.desc()).limit(10).all() users5 = users.order_by(User.received_award_count.desc()).limit(10).all()
users7 = users.order_by(User.coins_spent.desc()).limit(10).all() users7 = users.order_by(User.coins_spent.desc()).limit(20).all()
if 'pcmemes.net' in request.host: if 'pcmemes.net' in request.host:
users6 = users.order_by(User.basedcount.desc()).limit(10).all() users6 = users.order_by(User.basedcount.desc()).limit(10).all()
return render_template("leaderboard.html", v=v, users1=users1, users2=users2, users3=users3, users4=users4, users5=users5, users6=users6, users7=users7) return render_template("leaderboard.html", v=v, users1=users1, users2=users2, users3=users3, users4=users4, users5=users5, users6=users6, users7=users7)

View File

@ -28,7 +28,7 @@
</pre> </pre>
<h5 style="font-weight:bold;text-align: center;">Top 10 by coins spent in shop</h5> <h5 style="font-weight:bold;text-align: center;">Top 20 by coins spent in shop</h5>
<pre> <pre>
@ -56,7 +56,7 @@
</pre> </pre>
<h5 style="font-weight:bold;text-align: center;">Top 10 by followers</h5> <h5 style="font-weight:bold;text-align: center;">Top 15 by followers</h5>
<pre> <pre>