Skip to content

Commit

Permalink
Minor changes to utility/troubleshooting/convenience script view-port…
Browse files Browse the repository at this point in the history
…al-object.
  • Loading branch information
dmichaels-harvard committed Aug 19, 2024
1 parent 8ed90d3 commit a18842a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions dcicutils/scripts/update_portal_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,11 @@ def loadxl_print(arg):
else:
data = {schema_name: [data]}
if not _is_schema_name_list(portal, schema_names := list(data.keys())):
_print(f"Unrecognized types in JSON data file: {inserts_file}")
return False
if not (schema_name := _get_schema_name_from_schema_named_json_file_name(portal, inserts_file)):
_print(f"Unrecognized types in JSON data file: {inserts_file}")
# Assume simple object of type from the JSON file name.
schema_names = [schema_name]
data = {schema_name: [data]}
with temporary_directory() as tmpdir:
nfiles = 0
for schema_name in schema_names:
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.14.0.1b27" # TODO: To become 8.14.1
version = "8.14.0.1b28" # TODO: To become 8.14.1
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 a18842a

Please sign in to comment.