diff --git a/dcicutils/scripts/update_portal_object.py b/dcicutils/scripts/update_portal_object.py index d8c3f8fce..27ffcef8b 100644 --- a/dcicutils/scripts/update_portal_object.py +++ b/dcicutils/scripts/update_portal_object.py @@ -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: diff --git a/pyproject.toml b/pyproject.toml index 4ad528335..81c9f20d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] license = "MIT"