Skip to content

Commit

Permalink
Merge pull request #55 from wey-gu/fix_multi_tag
Browse files Browse the repository at this point in the history
fix multi-tags issue when "type" in schema
  • Loading branch information
wey-gu authored May 20, 2024
2 parents 7399e71 + d048867 commit c485f6b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions ngql/magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="jupyter_nebulagraph",
version="0.12.0",
version="0.12.1",
author="Wey Gu",
author_email="[email protected]",
description="Jupyter extension for NebulaGraph",
Expand Down
2 changes: 1 addition & 1 deletion setup_ipython.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="ipython-ngql",
version="0.12.0",
version="0.12.1",
author="Wey Gu",
author_email="[email protected]",
description="Jupyter extension for NebulaGraph",
Expand Down

0 comments on commit c485f6b

Please sign in to comment.