forked from rDrama/rDrama
dfd
parent
514fa47718
commit
67a76912fd
|
@ -45,7 +45,8 @@ def leaderboard(v):
|
||||||
users = g.db.query(User).options(lazyload('*'))
|
users = g.db.query(User).options(lazyload('*'))
|
||||||
users1 = users.order_by(User.dramacoins.desc()).limit(25).all()
|
users1 = users.order_by(User.dramacoins.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(10).all()
|
||||||
return render_template("leaderboard.html", v=v, users1=users1, users2=users2)
|
users3= sorted(users, key=lambda x: x.post_count, reverse=True)[:10]
|
||||||
|
return render_template("leaderboard.html", v=v, users1=users1, users2=users2, users3=users3)
|
||||||
|
|
||||||
@app.get("/@<username>/css")
|
@app.get("/@<username>/css")
|
||||||
def get_css(username):
|
def get_css(username):
|
||||||
|
|
Loading…
Reference in New Issue