1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-06-25 06:31:33 +00:00

Add argument 'including_org' to get_top_groups().

This commit is contained in:
cuihaikuo 2018-08-17 15:17:52 +08:00
parent 06df579d5c
commit f079e32ac1

View File

@ -885,8 +885,8 @@ class CcnetAPI(object):
"""
return ccnet_threaded_rpc.search_groups(group_patt, start, limit)
def get_top_groups(self):
return ccnet_threaded_rpc.get_top_groups()
def get_top_groups(self, including_org=False):
return ccnet_threaded_rpc.get_top_groups(1 if including_org else 0)
def get_child_groups(self, group_id):
return ccnet_threaded_rpc.get_child_groups(group_id)