sort jannies by level

pull/142/head
Aevann 2023-04-15 04:40:45 +02:00
parent d5436b0997
commit 5e56bfdc03
2 changed files with 3 additions and 1 deletions

View File

@ -140,7 +140,7 @@ def patrons(v):
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)
@auth_required
def admins(v:User):
admins = g.db.query(User).filter(User.admin_level >= PERMS['ADMIN_MOP_VISIBLE']).order_by(User.truescore.desc()).all()
admins = g.db.query(User).filter(User.admin_level >= PERMS['ADMIN_MOP_VISIBLE']).order_by(User.admin_level.desc()).all()
return render_template("admins.html", v=v, admins=admins)
@app.get("/log")

View File

@ -11,6 +11,7 @@
<tr>
<th>#</th>
<th>Name</th>
<th>Admin Level</th>
<th style="text-align:right;">Truescore</th>
<th style="text-align:right;">Mod actions</th>
</tr>
@ -20,6 +21,7 @@
<tr>
<td>{{loop.index}}</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.admin_level}}</td>
<td style="text-align:right;">{{"{:,}".format(user.truescore)}}</td>
<td style="text-align:right;"><a href="/log?admin={{user.username}}">{{"{:,}".format(user.modaction_num)}}</a></td>
</tr>