diff --git a/bam_masterdata/openbis/get_entities.py b/bam_masterdata/openbis/get_entities.py index 6077ca85..d52daa76 100644 --- a/bam_masterdata/openbis/get_entities.py +++ b/bam_masterdata/openbis/get_entities.py @@ -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 @@ -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("."))) \ No newline at end of file + return dict(sorted(formatted_dict.items(), key=lambda item: item[0].count(".")))