mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] show usage quota status
This commit is contained in:
parent
ccefc0d809
commit
5dd516c6ab
1 changed files with 2 additions and 1 deletions
|
@ -384,7 +384,8 @@ def user_info(auth, username):
|
||||||
userquota = subprocess.check_output(cmd,stderr=subprocess.STDOUT,
|
userquota = subprocess.check_output(cmd,stderr=subprocess.STDOUT,
|
||||||
shell=True)
|
shell=True)
|
||||||
quotavalue = re.findall(r'\d+', userquota)
|
quotavalue = re.findall(r'\d+', userquota)
|
||||||
result = '%s / %s (%s%s)' % ( _convertSize(eval(quotavalue[0])), user['mailuserquota'][0], quotavalue[2], '%')
|
result = '%s / %s (%s%s)' % ( _convertSize(eval(quotavalue[0])),
|
||||||
|
user['mailuserquota'][0], quotavalue[2], '%')
|
||||||
result_dict['mailbox-quota'] = result
|
result_dict['mailbox-quota'] = result
|
||||||
else:
|
else:
|
||||||
result_dict['mailbox-quota'] = m18n.n('unlimit')
|
result_dict['mailbox-quota'] = m18n.n('unlimit')
|
||||||
|
|
Loading…
Add table
Reference in a new issue