Skip to content

Commit

Permalink
Fix recursive search for get_groups_by_parent
Browse files Browse the repository at this point in the history
  • Loading branch information
FISHMANPET committed May 12, 2023
1 parent f70afa3 commit de2ac6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion grouper_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

Client = GrouperClient

__version__ = "0.1.2"
__version__ = "0.1.3"
__all__ = ["GrouperClient"]
4 changes: 2 additions & 2 deletions grouper_python/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ def get_groups_by_parent(
}
}
if recursive:
body["WsRestFindGroupsLiteRequest"]["parentStemNameScope"] = "ALL_IN_SUBTREE"
body["WsRestFindGroupsLiteRequest"]["stemNameScope"] = "ALL_IN_SUBTREE"
else:
body["WsRestFindGroupsLiteRequest"]["parentStemNameScope"] = "ONE_LEVEL"
body["WsRestFindGroupsLiteRequest"]["stemNameScope"] = "ONE_LEVEL"
r = client._call_grouper(
"/groups",
body,
Expand Down

0 comments on commit de2ac6e

Please sign in to comment.