Skip to content

Commit

Permalink
Fixed data v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Knucklessg1 committed May 30, 2024
1 parent 1dec538 commit 1f20c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitlab_api/gitlab_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,7 @@ def get_nested_projects_by_group(
sub_groups = self.get_group_subgroups(group_id=project.group_id)
groups = [parent_group.data]
if isinstance(sub_groups, Response):
groups = groups + sub_groups.data
groups = groups + sub_groups.data.groups
for group in groups:
response = self.get_total_projects_in_group(group_id=project.group_id)
total_pages = int(response.headers["X-Total-Pages"])
Expand All @@ -2133,7 +2133,7 @@ def get_nested_projects_by_group(
group_projects = self.get_group_projects(
group_id=group["id"], per_page=project.per_page, page=page
)
projects = projects + group_projects.data
projects = projects + group_projects.data.projects
response = Response(
data=projects,
status_code=200,
Expand Down

0 comments on commit 1f20c3a

Please sign in to comment.