Merge branch 'frost' of https://github.com/Aevann1/Drama into frost

master
Aevann1 2022-05-25 23:13:07 +02:00
commit 878119d7a2
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ month = datetime.now().strftime('%B')
@admin_level_required(2)
def loggedin_list(v):
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)