mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-08-31 23:19:36 +00:00
Get repo list add return virtual repos (#605)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
@@ -31,8 +31,8 @@ class SeafServerThreadedRpcClient(NamedPipeClient):
|
||||
pass
|
||||
remove_repo = seafile_destroy_repo
|
||||
|
||||
@searpc_func("objlist", ["int", "int"])
|
||||
def seafile_get_repo_list(start, limit, order_by):
|
||||
@searpc_func("objlist", ["int", "int", "string", "int"])
|
||||
def seafile_get_repo_list(start, limit, order_by, ret_virt_repo):
|
||||
pass
|
||||
get_repo_list = seafile_get_repo_list
|
||||
|
||||
|
@@ -107,11 +107,11 @@ class SeafileAPI(object):
|
||||
def remove_repo(self, repo_id):
|
||||
return seafserv_threaded_rpc.remove_repo(repo_id)
|
||||
|
||||
def get_repo_list(self, start, limit, order_by=None):
|
||||
def get_repo_list(self, start, limit, order_by=None, ret_virt_repo=False):
|
||||
"""
|
||||
Return: a list of Repo objects (lib/repo.vala)
|
||||
"""
|
||||
return seafserv_threaded_rpc.get_repo_list(start, limit, order_by)
|
||||
return seafserv_threaded_rpc.get_repo_list(start, limit, order_by, 1 if ret_virt_repo else 0)
|
||||
|
||||
def count_repos(self):
|
||||
return seafserv_threaded_rpc.count_repos()
|
||||
|
Reference in New Issue
Block a user