Skip to content

Commit

Permalink
Fixing the rendering of the graph to not use schema when produing rel…
Browse files Browse the repository at this point in the history
…ationships
  • Loading branch information
LittleDan9 committed Sep 26, 2024
1 parent e73b2c8 commit 0a06110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paracelsus/transformers/dot.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, metaclass: MetaData, column_sort: str) -> None:
)
continue

edge = pydot.Edge(left_table, table.name)
edge = pydot.Edge(left_table.split('.')[-1], table.name)
edge.set_label(column.name)
edge.set_dir("both")

Expand Down
2 changes: 1 addition & 1 deletion paracelsus/transformers/mermaid.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _relationships(self, column: Column) -> str:
else:
left_operand = "}o"

output += f" {left_table} {left_operand}--{right_operand} {right_table} : {column_name}\n"
output += f" {left_table.split('.')[-1]} {left_operand}--{right_operand} {right_table} : {column_name}\n"
return output

def __str__(self) -> str:
Expand Down

0 comments on commit 0a06110

Please sign in to comment.