From 662e2938a33a514b9772dcfe713e9e663259e607 Mon Sep 17 00:00:00 2001 From: David Michaels Date: Mon, 19 Aug 2024 11:20:05 -0400 Subject: [PATCH] Minor changes to utility/troubleshooting/convenience script view-portal-object. --- dcicutils/scripts/view_portal_object.py | 5 +++-- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dcicutils/scripts/view_portal_object.py b/dcicutils/scripts/view_portal_object.py index 4abe0ca01..a5a7b4d61 100644 --- a/dcicutils/scripts/view_portal_object.py +++ b/dcicutils/scripts/view_portal_object.py @@ -294,8 +294,8 @@ def get_metadata_types(path: str) -> Optional[dict]: nonlocal portal, debug metadata_types = {} try: - if debug: - _print(f"Executing separted query to get actual metadata types for raw/inserts query.") + if verbose: + _print(f"Executing separted query to get actual metadata types for raw/inserts query.") if ((response := portal.get(path)) and (response.status_code in [200, 307]) and (response := response.json()) and (results := response.get("@graph"))): # noqa for result in results: @@ -356,6 +356,7 @@ def get_metadata_types(path: str) -> Optional[dict]: result = prune_data(result) if (subtypes and one_or_more_objects_of_types_exists(portal, subtypes, debug=debug) and (result_uuid := result.get("uuid"))): # noqa + import pdb ; pdb.set_trace() # noqa # If we have more than (say) 5 results for which we need to determine that actual result type, # then get them all at once via separate query (get_metadata_types)) which is not the raw frame. if (results_total > 5) and (not response_types): diff --git a/pyproject.toml b/pyproject.toml index 3bade115e..f3d633f79 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dcicutils" -version = "8.14.0.1b22" # TODO: To become 8.14.1 +version = "8.14.0.1b23" # TODO: To become 8.14.1 description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources" authors = ["4DN-DCIC Team "] license = "MIT"