We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da5b8ad commit 9b7647cCopy full SHA for 9b7647c
āros_typedb/ros_typedb/typedb_interface.py
@@ -820,10 +820,8 @@ def insert_entity(
820
"""
821
for attribute in attribute_list:
822
if attribute[0] is not None:
823
- if isinstance(attribute[1], str):
824
- query += f""", has {attribute[0]} "{attribute[1]}" """
825
- else:
826
- query += f""", has {attribute[0]} {attribute[1]}"""
+ value = self.convert_py_type_to_query_type(attribute[1])
+ query += f""", has {attribute[0]} {value} """
827
query += ";"
828
return self.insert_database(query)
829
0 commit comments