Skip to content
Snippets Groups Projects
Unverified Commit 448000bf authored by Florian Maurer's avatar Florian Maurer
Browse files

set default relation for mermaid_er using cardinalities_crowfoot

parent 921ad3ee
No related branches found
No related tags found
No related merge requests found
...@@ -204,12 +204,8 @@ class Relation(Drawable): ...@@ -204,12 +204,8 @@ class Relation(Drawable):
return '{} "{}" -- "{}" {}'.format(*normalized) return '{} "{}" -- "{}" {}'.format(*normalized)
def to_mermaid_er(self) -> str: def to_mermaid_er(self) -> str:
left = Relation.cardinalities_crowfoot.get( left = Relation.cardinalities_crowfoot.get(self.left_cardinality, self.left_cardinality)
self.left_cardinality, right = Relation.cardinalities_crowfoot.get(self.right_cardinality, self.right_cardinality)
)
right = Relation.cardinalities_crowfoot.get(
self.right_cardinality,
)
left_col = sanitize_mermaid(self.left_table, is_er=True) left_col = sanitize_mermaid(self.left_table, is_er=True)
right_col = sanitize_mermaid(self.right_table, is_er=True) right_col = sanitize_mermaid(self.right_table, is_er=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment