forked from rDrama/rDrama
order last_active desc
parent
63958814bf
commit
4dc4834418
|
@ -295,7 +295,7 @@ def shadowbanned(v):
|
||||||
key = User.shadowbanned
|
key = User.shadowbanned
|
||||||
else:
|
else:
|
||||||
sort = "last_active"
|
sort = "last_active"
|
||||||
key = User.last_active
|
key = User.last_active.desc()
|
||||||
|
|
||||||
users = users.order_by(key).offset(PAGE_SIZE * (page - 1)).limit(PAGE_SIZE)
|
users = users.order_by(key).offset(PAGE_SIZE * (page - 1)).limit(PAGE_SIZE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue