Skip to content

Commit 0b32339

Browse files
committed
fix:getnode
1 parent 4ec2c62 commit 0b32339

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/memos/graph_dbs/polardb.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -862,9 +862,9 @@ def format_param_value(value: str) -> str:
862862

863863
if result:
864864
if include_embedding:
865-
properties_json, embedding_json = result
865+
_, properties_json, embedding_json = result
866866
else:
867-
properties_json = result
867+
_, properties_json = result
868868
embedding_json = None
869869

870870
# Parse properties from JSONB if it's a string
@@ -892,8 +892,8 @@ def format_param_value(value: str) -> str:
892892
return self._parse_node(
893893
{
894894
"id": id,
895-
"memory": json.loads(properties[1]).get("memory", ""),
896-
**json.loads(properties[1]),
895+
"memory": properties.get("memory", ""),
896+
**properties,
897897
}
898898
)
899899
return None

0 commit comments

Comments
 (0)