forked from rDrama/rDrama
master
parent
eb37ef9635
commit
ba1293108c
|
@ -47,9 +47,9 @@ def leaderboard(v):
|
||||||
|
|
||||||
@cache.memoize(timeout=86400)
|
@cache.memoize(timeout=86400)
|
||||||
def leaderboard():
|
def leaderboard():
|
||||||
users1= sorted(g.db.query(User).options(lazyload('*')), key=lambda x: x.dramacoins, reverse=True)[:25]
|
users1= sorted(g.db.query(User).options(lazyload('*')), key=lambda x: x.dramacoins, reverse=True)[:200]
|
||||||
users2= sorted(users1, key=lambda x: x.follower_count, reverse=True)[:10]
|
users2= sorted(users1, key=lambda x: x.follower_count, reverse=True)[:10]
|
||||||
return users1, users2
|
return users1[:25], users2
|
||||||
|
|
||||||
@app.get("/@<username>/css")
|
@app.get("/@<username>/css")
|
||||||
def get_css(username):
|
def get_css(username):
|
||||||
|
|
Loading…
Reference in New Issue