Skip to content

Commit

Permalink
Add exclude edge check
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCurtis committed Jan 28, 2024
1 parent 9a1a3f7 commit fc8ee44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/fk_graph/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ def _add_related_rows_to_graph(row, row_node, graph, only_tables):
for relationship in relationships:
related_rows = _get_related_rows_for_relationship(row, relationship)
for related_row in related_rows:
if _row_is_from_an_included_table(related_row, only_tables):
if (
_row_is_from_an_included_table(related_row, only_tables
and
not exclude_edge(row, related_row)
):
related_node = _create_node_from_row(related_row)
related.append((related_row, related_node))
unvisited = [
Expand Down

0 comments on commit fc8ee44

Please sign in to comment.