From 0ed331afab2d6d51720a7d2cb891b2c0d124d3d7 Mon Sep 17 00:00:00 2001 From: Loren Siebert Date: Tue, 23 Aug 2022 14:40:56 -0700 Subject: [PATCH] Fixes #142 - When `through_tables` are explicitly specified, the table gets added to the tree when it shouldn't. --- pgsync/node.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pgsync/node.py b/pgsync/node.py index cf726aba..b838a81d 100644 --- a/pgsync/node.py +++ b/pgsync/node.py @@ -288,8 +288,6 @@ def build(self, data: dict) -> Node: ) self.tables.add(node.table) - for through_node in node.relationship.through_nodes: - self.tables.add(through_node.table) for child in data.get("children", []): node.add_child(self.build(child))