loggedin: Order by JL, TS desc.

master
Snakes 2022-05-25 16:37:02 -04:00
parent 50b995d3a0
commit 6784ccdd27
1 changed files with 2 additions and 1 deletions

View File

@ -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)