Skip to content

Commit

Permalink
nit, #11748
Browse files Browse the repository at this point in the history
  • Loading branch information
apeters committed Jan 24, 2025
1 parent b15939a commit 4f8f1c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions 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,
include_rr_count=True,
):
"""
Returns an object that lists the related resources, the relationship types, and a reference to the current resource
Expand Down Expand Up @@ -929,7 +929,7 @@ def get_relations(
if related_resources:
for resource in related_resources["docs"]:
if resource["found"]:
if includeRRCount:
if include_rr_count:
rel_count = get_relations(
resourceinstanceid=resource["_id"],
start=0,
Expand Down
2 changes: 1 addition & 1 deletion arches/app/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ def get(self, request, resourceid):
request.GET = get_params

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

Expand Down
6 changes: 3 additions & 3 deletions arches/app/views/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ def parse_relationshiptype_label(relationship):

return ret

def get(self, request, resourceid=None, includeRRCount=True):
def get(self, request, resourceid=None, include_rr_count=True):
ret = {}

if self.action == "get_candidates":
Expand Down 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,
include_rr_count=include_rr_count,
)

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,
include_rr_count=include_rr_count,
)

return JSONResponse(ret)
Expand Down

0 comments on commit 4f8f1c5

Please sign in to comment.