From 7dbd00f27919c7b3a32fbe3a1f1d90702c9b88e0 Mon Sep 17 00:00:00 2001 From: David Michaels Date: Fri, 9 Feb 2024 08:17:42 -0500 Subject: [PATCH] minor fix in structured_data --- dcicutils/structured_data.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dcicutils/structured_data.py b/dcicutils/structured_data.py index 1d2fa95ec..ae3424203 100644 --- a/dcicutils/structured_data.py +++ b/dcicutils/structured_data.py @@ -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") diff --git a/pyproject.toml b/pyproject.toml index 1cf79ab70..e2a6273a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] license = "MIT"