From f079e32ac1b51a65643e32dedb74930c4c658f5a Mon Sep 17 00:00:00 2001 From: cuihaikuo Date: Fri, 17 Aug 2018 15:17:52 +0800 Subject: [PATCH] Add argument 'including_org' to get_top_groups(). --- python/seaserv/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/seaserv/api.py b/python/seaserv/api.py index 0218d38..2b31f82 100644 --- a/python/seaserv/api.py +++ b/python/seaserv/api.py @@ -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)