forked from MarseyWorld/MarseyWorld
loggedin: Order by JL, TS desc.
parent
50b995d3a0
commit
6784ccdd27
|
@ -28,7 +28,8 @@ month = datetime.now().strftime('%B')
|
||||||
@admin_level_required(2)
|
@admin_level_required(2)
|
||||||
def loggedin_list(v):
|
def loggedin_list(v):
|
||||||
ids = cache.get(f'{SITE}_loggedin').keys()
|
ids = cache.get(f'{SITE}_loggedin').keys()
|
||||||
users = g.db.query(User).filter(User.id.in_(ids)).all()
|
users = g.db.query(User).filter(User.id.in_(ids)) \
|
||||||
|
.order_by(User.admin_level.desc(), User.truecoins.desc()).all()
|
||||||
return render_template("agendaposters.html", v=v, users=users)
|
return render_template("agendaposters.html", v=v, users=users)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue