1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-20 18:27:23 +01:00

Add display of quotas

This commit is contained in:
John Supplee
2019-01-28 16:19:36 +02:00
parent d443135155
commit 3cd14bd4b8
2 changed files with 7 additions and 2 deletions

View File

@@ -128,13 +128,14 @@ def get_mail_users_ex(env, with_archived=False):
users = []
active_accounts = set()
c = open_database(env)
c.execute('SELECT email, privileges FROM users')
c.execute('SELECT email, privileges, quota FROM users')
for email, privileges in c.fetchall():
active_accounts.add(email)
user = {
"email": email,
"privileges": parse_privs(privileges),
"user": quota,
"status": "active",
}
users.append(user)