From 294d21db8b1ebdea6183a8d160d5cde62f83cec3 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 8 Apr 2026 23:29:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20recall=20=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=80=BC=E5=8F=98=E9=87=8F=E5=90=8D=20other->t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openclaw_neo4j_demo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openclaw_neo4j_demo.py b/openclaw_neo4j_demo.py index 815ce61..6a5c5b2 100644 --- a/openclaw_neo4j_demo.py +++ b/openclaw_neo4j_demo.py @@ -203,15 +203,15 @@ class Neo4jGraph: entities, relations = {}, [] for record in result: - e, r, other = record["e"], record["r"], record["other"] + e, r, t = record["e"], record["r"], record["t"] if e["name"] not in entities: entities[e["name"]] = {"name": e["name"], "type": e.get("type", "unknown"), "mention_count": e.get("mention_count", 1)} - if other["name"] not in entities: - entities[other["name"]] = {"name": other["name"], "type": other.get("type", "unknown"), "mention_count": other.get("mention_count", 1)} + if t["name"] not in entities: + entities[t["name"]] = {"name": t["name"], "type": t.get("type", "unknown"), "mention_count": t.get("mention_count", 1)} relations.append({ "source": e["name"], - "target": other["name"], + "target": t["name"], "type": r["type"], "created_at": str(r.get("created_at", "")), "session_id": r.get("session_id", ""),