diff --git a/src/ifcopenshell-python/ifcopenshell/util/selector.py b/src/ifcopenshell-python/ifcopenshell/util/selector.py index 22608af9cc..95576c447a 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/selector.py +++ b/src/ifcopenshell-python/ifcopenshell/util/selector.py @@ -334,7 +334,7 @@ def _get_element_value(element: ifcopenshell.entity_instance, keys: list[str]) - elif isinstance(value, (list, tuple)): value = len(value) else: - value = int(1) + value = 1 elif key == "class": value = value.is_a() elif key == "predefined_type": diff --git a/src/opencdeserver/api/app/repository/bcf.py b/src/opencdeserver/api/app/repository/bcf.py index bce4ca1c1f..547d310cf7 100644 --- a/src/opencdeserver/api/app/repository/bcf.py +++ b/src/opencdeserver/api/app/repository/bcf.py @@ -577,7 +577,7 @@ class BCFDB(MyDB): project_id=str(project_id), topic_id=str(topic_id), viewpoint_id=str(comment.viewpoint_guid), - reply_to_comment_id=str("comment.reply_to_comment_guid"), + reply_to_comment_id="comment.reply_to_comment_guid", comment_id=str(this_comment_guid), creation_date=self.timestamp(), comment=comment.comment,