diff --git a/encord/objects/ontology_labels_impl.py b/encord/objects/ontology_labels_impl.py index 10a519c1..bd30916e 100644 --- a/encord/objects/ontology_labels_impl.py +++ b/encord/objects/ontology_labels_impl.py @@ -2049,7 +2049,7 @@ def _parse_label_row_dict(self, label_row_dict: dict) -> LabelRowReadOnlyData: images_data=label_row_dict.get("images_data", self._label_row_read_only_data.images_data), file_type=label_row_dict.get("file_type", None), is_valid=bool(label_row_dict.get("is_valid", True)), - backing_item_uuid=label_row_dict.get("backing_item_uuid", self.backing_item_uuid), + backing_item_uuid=self.backing_item_uuid, ) def _parse_labels_from_dict(self, label_row_dict: dict): diff --git a/encord/orm/label_row.py b/encord/orm/label_row.py index 7c4c0ced..7d57d356 100644 --- a/encord/orm/label_row.py +++ b/encord/orm/label_row.py @@ -305,7 +305,7 @@ def from_dict(cls, json_dict: Dict) -> LabelRowMetadata: annotation_task_status = ( AnnotationTaskStatus(json_dict["annotation_task_status"]) - if json_dict["annotation_task_status"] is not None + if json_dict.get("annotation_task_status", None) is not None else None ) @@ -338,7 +338,9 @@ def from_dict(cls, json_dict: Dict) -> LabelRowMetadata: file_type=json_dict.get("file_type"), is_valid=bool(json_dict.get("is_valid", True)), branch_name=json_dict["branch_name"], - backing_item_uuid=json_dict.get("backing_item_uuid", None), + backing_item_uuid=UUID(json_dict["backing_item_uuid"]) + if json_dict.get("backing_item_uuid", None) is not None + else None, ) @classmethod