Skip to content

Commit

Permalink
remove _id field (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna authored Sep 24, 2024
1 parent 3451806 commit 315f19e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions adbnx_adapter/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,11 +638,8 @@ def __process_nx_node(

key = self.__cntrl._keyify_networkx_node(i, nx_id, nx_node, col)

adb_id = f"{col}/{key}"
nx_node["_id"] = adb_id
nx_node["_key"] = key

nx_map[nx_id] = adb_id
nx_map[nx_id] = f"{col}/{key}"

self.__cntrl._prepare_networkx_node(nx_node, col)
adb_docs[col].append(nx_node)
Expand Down Expand Up @@ -705,7 +702,6 @@ def __process_nx_edge(
col,
)

nx_edge["_id"] = f"{col}/{key}"
nx_edge["_key"] = key
nx_edge["_from"] = nx_map[from_node_id]
nx_edge["_to"] = nx_map[to_node_id]
Expand Down

0 comments on commit 315f19e

Please sign in to comment.