Skip to content

Commit

Permalink
- Added method portal_utils.get_schema_super_type_names (for use by s…
Browse files Browse the repository at this point in the history
…maht-submitr).
  • Loading branch information
dmichaels-harvard committed Mar 5, 2025
1 parent 63d8917 commit 3fed173
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dcicutils/portal_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,10 @@ def get_schema_super_type_names(self, schema_name: str, include_schema_name: boo
for super_type_name in super_type_map:
if schema_name in super_type_map[super_type_name]:
super_types.add(super_type_name)
super_types = list(super_types)
if (include_schema_name is True) and self.get_schema(schema_name):
super_types.insert(0, schema_name)
return list(super_types)
return super_types

@lru_cache(maxsize=100)
def get_schema_subtype_names(self, type_name: str) -> List[str]:
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.18.1.1b2" # TODO: 8.18.2
version = "8.18.1.1b3" # TODO: 8.18.2
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 3fed173

Please sign in to comment.