Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed May 27, 2024
1 parent 92dd024 commit fcd4b48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dcicutils/portal_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def is_lookup_subtypes(lookup_options: int) -> bool: # noqa
lookup_options = Portal.LOOKUP_UNDEFINED
if schema := self.get_schema(portal_type):
if callable(lookup_strategy):
lookup_options, validator = lookup_strategy(self._portal, self.type, schema, identifying_value)
lookup_options, validator = lookup_strategy(self, self.type, schema, identifying_value)
if callable(validator):
if validator(schema, identifying_property, identifying_value) is False:
continue
Expand All @@ -499,7 +499,7 @@ def is_lookup_subtypes(lookup_options: int) -> bool: # noqa
if is_lookup_root(lookup_options) and not is_lookup_root_first(lookup_options):
results.append(f"/{identifying_value}")
if is_lookup_subtypes(lookup_options):
for subtype_name in self._portal.get_schema_subtype_names(self.type):
for subtype_name in self.get_schema_subtype_names(self.type):
results.append(f"/{subtype_name}/{identifying_value}")
return results

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dcicutils"
version = "8.8.6.1b5"
version = "8.8.6.1b6"
description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources"
authors = ["4DN-DCIC Team <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit fcd4b48

Please sign in to comment.