From d04886722abbefa15a80ce8d29ce0769c2f50c90 Mon Sep 17 00:00:00 2001 From: Wey Gu Date: Mon, 20 May 2024 17:37:19 +0800 Subject: [PATCH] fix multi-tags issue when "type" in schema --- ngql/magic.py | 5 ++--- setup.py | 2 +- setup_ipython.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ngql/magic.py b/ngql/magic.py index 59da373..0253c1d 100644 --- a/ngql/magic.py +++ b/ngql/magic.py @@ -604,9 +604,8 @@ def render_pd_item(self, g, g_nx, item): # networkx if len(tags) > 1: - g_nx.add_node(node_id, type=tags[0], **props) - else: - g_nx.add_node(node_id, **props) + props["__tags__"] = ",".join(tags) + g_nx.add_node(node_id, **props) elif isinstance(item, Relationship): src_id = str(item.start_vertex_id().cast()) dst_id = str(item.end_vertex_id().cast()) diff --git a/setup.py b/setup.py index 78f8ffa..7e0cccd 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="jupyter_nebulagraph", - version="0.12.0", + version="0.12.1", author="Wey Gu", author_email="weyl.gu@gmail.com", description="Jupyter extension for NebulaGraph", diff --git a/setup_ipython.py b/setup_ipython.py index 69ae7ea..1a5c08a 100644 --- a/setup_ipython.py +++ b/setup_ipython.py @@ -5,7 +5,7 @@ setuptools.setup( name="ipython-ngql", - version="0.12.0", + version="0.12.1", author="Wey Gu", author_email="weyl.gu@gmail.com", description="Jupyter extension for NebulaGraph",