Skip to content

Commit

Permalink
minor fix in structured_data
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Feb 9, 2024
1 parent 4ff0cb1 commit 7dbd00f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dcicutils/structured_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ def _ref_exists_single(self, type_name: str, value: str) -> Tuple[bool, Optional
for item in items:
if (ivalue := next((item[iproperty] for iproperty in iproperties if iproperty in item), None)):
if isinstance(ivalue, list) and value in ivalue or ivalue == value:
return True, ivalue if is_uuid(ivalue) else None
return True, (ivalue if isinstance(ivalue, str) and is_uuid(ivalue) else None)
if (value := self.get_metadata(f"/{type_name}/{value}")) is None:
return False, None
return True, value.get("uuid")
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.7.2.1b1" # TODO: To become 8.8.0
version = "8.7.2.1b2" # TODO: To become 8.8.0
description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources"
authors = ["4DN-DCIC Team <support@4dnucleome.org>"]
license = "MIT"
Expand Down

0 comments on commit 7dbd00f

Please sign in to comment.