1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-03 08:24:27 +00:00

[RPC] Add 'delta' parameter to check_quota RPC.

This commit is contained in:
Jiaqiang Xu
2016-09-21 10:57:29 +08:00
parent aafc3af1d4
commit 29b82e62d6
7 changed files with 17 additions and 11 deletions

View File

@@ -881,9 +881,9 @@ def get_related_users_by_org_repo(org_id, repo_id):
return users
# quota
def check_quota(repo_id):
def check_quota(repo_id, delta=0):
try:
ret = seafserv_threaded_rpc.check_quota(repo_id)
ret = seafserv_threaded_rpc.check_quota(repo_id, delta)
except SearpcError, e:
logger.error(e)
ret = -1