mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-06-25 14:41:35 +00:00
Add argument 'including_org' to get_top_groups().
This commit is contained in:
parent
06df579d5c
commit
f079e32ac1
@ -885,8 +885,8 @@ class CcnetAPI(object):
|
|||||||
"""
|
"""
|
||||||
return ccnet_threaded_rpc.search_groups(group_patt, start, limit)
|
return ccnet_threaded_rpc.search_groups(group_patt, start, limit)
|
||||||
|
|
||||||
def get_top_groups(self):
|
def get_top_groups(self, including_org=False):
|
||||||
return ccnet_threaded_rpc.get_top_groups()
|
return ccnet_threaded_rpc.get_top_groups(1 if including_org else 0)
|
||||||
|
|
||||||
def get_child_groups(self, group_id):
|
def get_child_groups(self, group_id):
|
||||||
return ccnet_threaded_rpc.get_child_groups(group_id)
|
return ccnet_threaded_rpc.get_child_groups(group_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user