forked from MarseyWorld/MarseyWorld
fix under siege ordering
parent
297f04157f
commit
fc09103fec
|
@ -299,8 +299,8 @@ def shadowbanned(v):
|
|||
elif sort == "truescore":
|
||||
key = User.truescore.desc()
|
||||
elif sort == "shadowban_reason":
|
||||
users1 = users.filter(User.shadowban_reason == 'Under Siege').all()
|
||||
users2 = users.filter(User.shadowban_reason != 'Under Siege').order_by(User.shadowban_reason).all()
|
||||
users1 = users.filter(User.shadowban_reason.like('Under Siege%')).all()
|
||||
users2 = users.filter(not_(User.shadowban_reason.like('Under Siege%'))).order_by(User.shadowban_reason).all()
|
||||
users = users1 + users2
|
||||
users = users[PAGE_SIZE*(page-1):]
|
||||
users = users[:PAGE_SIZE]
|
||||
|
|
Loading…
Reference in New Issue