Skip to content

Commit

Permalink
Remove items called node and edges.
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldorodrigo committed Oct 23, 2024
1 parent d25abc2 commit 758e69e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hub/dataload/sources/civic/civic_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def remove_nodes_and_edges(obj):
if 'edges' in obj:
return [remove_nodes_and_edges(edge['node']) for edge in obj['edges']]

# if 'nodes' in obj:
# return [remove_nodes_and_edges(node) for node in obj['nodes']]
if 'nodes' in obj:
return [remove_nodes_and_edges(node) for node in obj['nodes']]

return {
key: remove_nodes_and_edges(value)
Expand Down

0 comments on commit 758e69e

Please sign in to comment.