Skip to content

Commit d9e399c

Browse files
Membership Recursion Fix
Same problem we had with organizations where the logic for recursion was always returning False due to max_depth having NoneType.
1 parent 685887d commit d9e399c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

membersuite_api_client/memberships/services.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def get_all_memberships(self, since_when=None, results=None,
9090

9191
# Check if the queryset was completely full. If so, there may be
9292
# More results we need to query
93-
if len(new_results) >= limit_to and depth < max_depth:
93+
if len(new_results) >= limit_to and not depth == max_depth:
9494
new_results = self.get_all_memberships(
9595
since_when=since_when,
9696
results=new_results,

0 commit comments

Comments
 (0)