fd
This commit is contained in:
parent
52048ea6de
commit
6fed075aa2
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ def leaderboard(v):
|
|||
@auth_desired
|
||||
def award_leaderboard(v):
|
||||
users = g.db.query(User).options(lazyload('*')).all()
|
||||
users = sorted(users, key=lambda x: x.received_awards_num, reverse=True)
|
||||
users = sorted(users, key=lambda x: x.received_awards_num, reverse=True)[:10]
|
||||
return render_template("award_leaderboard.html", v=v, users=users)
|
||||
|
||||
@app.get("/@<username>/css")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue