Skip to content

Commit

Permalink
formatting nits, #11748
Browse files Browse the repository at this point in the history
  • Loading branch information
apeters committed Jan 24, 2025
1 parent 0937331 commit b15939a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arches/app/models/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ def get_related_resources(
user=None,
resourceinstance_graphid=None,
graphs=None,
includeRRCount=True
includeRRCount=True,
):
"""
Returns an object that lists the related resources, the relationship types, and a reference to the current resource
Expand Down
4 changes: 3 additions & 1 deletion arches/app/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,9 @@ def get(self, request, resourceid):
get_params.update({"paginate": "false"})
request.GET = get_params

related_resources_response = RelatedResourcesView().get(request, resourceid, includeRRCount=False)
related_resources_response = RelatedResourcesView().get(
request, resourceid, includeRRCount=False
)
related_resources = json.loads(related_resources_response.content)

related_resources_summary = self._generate_related_resources_summary(
Expand Down
4 changes: 2 additions & 2 deletions arches/app/views/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ def get(self, request, resourceid=None, includeRRCount=True):
user=request.user,
resourceinstance_graphid=resourceinstance_graphid,
graphs=self.graphs,
includeRRCount=includeRRCount
includeRRCount=includeRRCount,
)

ret = self.paginate_related_resources(
Expand All @@ -1067,7 +1067,7 @@ def get(self, request, resourceid=None, includeRRCount=True):
user=request.user,
resourceinstance_graphid=resourceinstance_graphid,
graphs=self.graphs,
includeRRCount=includeRRCount
includeRRCount=includeRRCount,
)

return JSONResponse(ret)
Expand Down
1 change: 1 addition & 0 deletions releases/7.6.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### Bug Fixes and Enhancements

- Fix inability to remove a second parent from a concept [#11742](https://github.com/archesproject/arches/pull/11742)
- Fix slow reports when used on systems with many related resources [#11748](https://github.com/archesproject/arches/pull/11748)


### Dependency changes:
Expand Down

0 comments on commit b15939a

Please sign in to comment.