From ad77d099169fcf7dee95f27ebd4fd2cf15b386c9 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 21 Aug 2024 16:58:31 +0500 Subject: [PATCH] fix bug in bonsai bcf v3 api it wasn't setting reference links / document references / labels if Topic container for them wasn't created before --- src/bonsai/bonsai/tool/bcf.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/bonsai/bonsai/tool/bcf.py b/src/bonsai/bonsai/tool/bcf.py index f0ee125b20..55419bf2ae 100644 --- a/src/bonsai/bonsai/tool/bcf.py +++ b/src/bonsai/bonsai/tool/bcf.py @@ -95,7 +95,6 @@ class Bcf(bonsai.core.tool.Bcf): if not document_references: return topic_.document_references = (topic_document_references := bcf.v3.model.TopicDocumentReferences()) - return topic_document_references.document_reference = document_references @classmethod @@ -163,7 +162,6 @@ class Bcf(bonsai.core.tool.Bcf): if not labels: return topic_.labels = (topic_labels := bcf.v3.model.TopicLabels()) - return topic_labels.label = labels @classmethod @@ -186,7 +184,6 @@ class Bcf(bonsai.core.tool.Bcf): if not reference_links: return topic_.reference_links = (topic_links := bcf.v3.model.TopicReferenceLinks()) - return topic_links.reference_link = reference_links @classmethod