diff options
Diffstat (limited to 'gn_auth/auth/authorisation/resources/groups/views.py')
-rw-r--r-- | gn_auth/auth/authorisation/resources/groups/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gn_auth/auth/authorisation/resources/groups/views.py b/gn_auth/auth/authorisation/resources/groups/views.py index 28f64e2..e6c92cb 100644 --- a/gn_auth/auth/authorisation/resources/groups/views.py +++ b/gn_auth/auth/authorisation/resources/groups/views.py @@ -35,8 +35,8 @@ groups = Blueprint("groups", __name__) @require_oauth("profile group") def list_groups(): """Return the list of groups that exist.""" - _kwargs = {key: value for key, value in request_json().items()} - def __add_total_group_count__(conn, groups_info): + _kwargs = request_json() + def __add_total_group_count__(groups_info): return { "groups": groups_info[0], "total-groups": groups_info[1], @@ -50,7 +50,7 @@ def list_groups(): start=int(_kwargs.get("start", "0")), length=int(_kwargs.get("length", "0")) ).then( - partial(__add_total_group_count__, conn) + __add_total_group_count__ ).maybe( { "groups": [], |