Skip to content

Commit fde470a

Browse files
author
yunjiu
committed
[nebula] modified add_function for addtional attributes
1 parent a24e243 commit fde470a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

muagent/db_handler/graph_db_handler/nebula_handler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,10 @@ def add_node(self, node: GNode) -> GbaseExecStatus:
292292
value = value.replace("\n", "\\n").replace("\"", "\\\"")
293293
cypher += f'"{value}",'
294294
elif prop_name == 'description':
295-
# 特殊符号需要手动加\转义符
296295
value = value.replace("\n", "\\n").replace("\"", "\\\"")
297-
# logger.info(value)
296+
cypher += f'"{value}",'
297+
elif prop_name == 'envdescription':
298+
value = value.replace("\n", "\\n").replace("\"", "\\\"")
298299
cypher += f'"{value}",'
299300
else:
300301
cypher += f'"{value}",'

0 commit comments

Comments
 (0)