order /admin/shadowbanned by ban reason

pull/157/head
Aevann 2023-06-24 21:18:17 +03:00
parent 4941baa477
commit 8769023985
1 changed files with 2 additions and 0 deletions

View File

@ -294,6 +294,8 @@ def shadowbanned(v):
collected_users.append(u)
collected_alts = collected_alts | get_alt_graph_ids(u.id)
collected_users = sorted(collected_users, key=lambda x: x.ban_reason)
return render_template("admin/shadowbanned.html", v=v, users=collected_users)