Skip to content

Commit 949bf1b

Browse files
author
Marin Visscher
committed
Enable moving nodes to another database
1 parent 3ed6cbc commit 949bf1b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bw_functional/node_classes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,9 @@ def copy(self, *args, **kwargs):
209209
act = super().copy(*args, **kwargs)
210210
act.production().delete() # Delete the production exchanges to avoid duplicates
211211

212+
database = kwargs.get("database", self["database"])
212213
for product in self.products():
213-
prod_copy = product.copy(processor=act.key)
214+
prod_copy = product.copy(processor=act.key, database=database)
214215

215216
edge_data = product.processing_edge.as_dict()
216217
edge_data["input"] = prod_copy.key

0 commit comments

Comments
 (0)