Skip to content

Commit

Permalink
Fixed ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmada22 committed Jan 10, 2025
1 parent d527621 commit 9dde983
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bam_masterdata/openbis/get_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def _assign_properties(self, entity_name: str, formatted_dict: dict) -> None:
properties = {}
for entry in assignments_dict:
# ! This has changed and now permId does not exist on the property assignments!!
property_perm_id = (
self.openbis.get_property_type(entry.get("code", {})).permId
)
property_perm_id = self.openbis.get_property_type(
entry.get("code", {})
).permId
print(property_perm_id)
if property_perm_id:
# Include the desired property fields
Expand Down Expand Up @@ -181,4 +181,4 @@ def get_vocabulary_dict(self) -> dict:
formatted_dict[code]["terms"] = {}

# We return the sorted dictionary in order to have a consistent order for inheritance
return dict(sorted(formatted_dict.items(), key=lambda item: item[0].count(".")))
return dict(sorted(formatted_dict.items(), key=lambda item: item[0].count(".")))

1 comment on commit 9dde983

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
bam_masterdata
   logger.py80100% 
bam_masterdata/cli
   cli.py664343 35%
   entities_to_excel.py5433 94%
   entities_to_json.py3655 86%
   fill_masterdata.py181167167 8%
bam_masterdata/datamodel
   collection_types.py370100% 
   dataset_types.py184184184 0%
   object_types.py15150100% 
   property_types.py8000100% 
   vocabulary_types.py137210100% 
bam_masterdata/metadata
   definitions.py770100% 
   entities.py5433 94%
bam_masterdata/openbis
   get_entities.py534343 19%
   login.py633 50%
bam_masterdata/utils
   utils.py3366 82%
TOTAL1682545797% 

Tests Skipped Failures Errors Time
57 1 💤 0 ❌ 0 🔥 19.217s ⏱️

Please sign in to comment.