Finish storing the user quota to redis

This commit is contained in:
kaiyou
2018-04-21 17:19:44 +02:00
parent 80893be68b
commit 7f0447514c
2 changed files with 10 additions and 7 deletions

View File

@@ -260,7 +260,7 @@ class User(Base, Email):
@property
def quota_bytes_used(self):
return quota.get(self.email) or 0
return quota.get(self.email + "/quota/storage") or 0
scheme_dict = {'SHA512-CRYPT': "sha512_crypt",
'SHA256-CRYPT': "sha256_crypt",