minor tweak to data used in admin pages

This commit is contained in:
Izalia Mae 2024-03-11 03:24:44 -04:00
parent 21e0e0a3ec
commit 189ac887a9

View file

@ -249,7 +249,7 @@ class AdminWhitelist(View):
with self.database.session() as conn:
context = {
'whitelist': tuple(conn.execute('SELECT * FROM whitelist').all())
'whitelist': tuple(conn.execute('SELECT * FROM whitelist ORDER BY domain ASC'))
}
if error:
@ -299,7 +299,7 @@ class AdminDomainBans(View):
with self.database.session() as conn:
context = {
'bans': tuple(conn.execute('SELECT * FROM domain_bans ORDER BY domain ASC').all())
'bans': tuple(conn.execute('SELECT * FROM domain_bans ORDER BY domain ASC'))
}
if error:
@ -357,7 +357,7 @@ class AdminSoftwareBans(View):
with self.database.session() as conn:
context = {
'bans': tuple(conn.execute('SELECT * FROM software_bans ORDER BY name ASC').all())
'bans': tuple(conn.execute('SELECT * FROM software_bans ORDER BY name ASC'))
}
if error:
@ -415,7 +415,7 @@ class AdminUsers(View):
with self.database.session() as conn:
context = {
'users': tuple(conn.execute('SELECT * FROM users').all())
'users': tuple(conn.execute('SELECT * FROM users ORDER BY username ASC'))
}
if error: