Skip to content

Commit

Permalink
remove _id field
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Sep 23, 2024
1 parent 3451806 commit d5fac70
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 d5fac70

Please sign in to comment.