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