1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

[api] return the size of starred files

This commit is contained in:
poetwang
2012-11-04 21:59:17 +08:00
parent e46e0cd85a
commit 4fddb196c1
2 changed files with 17 additions and 2 deletions

View File

@@ -263,7 +263,7 @@ class Account(ResponseMixin, View):
email = request.user.username
info['email'] = email
info['usage'] = seafserv_threaded_rpc.get_user_quota_usage(email)
info['total'] = 2 * 1024 * 1024 * 1024
info['total'] = seafserv_threaded_rpc.get_user_quota(email)
info['feedback'] = settings.DEFAULT_FROM_EMAIL
response = Response(200, [info])
return self.render(response)
@@ -801,6 +801,7 @@ def append_starred_files(array, files):
'path' : f.path,
'mtime' : f.last_modified,
'dir' : f.is_dir,
'size' : f.size
}
array.append(sfile)