From a31199983431ba788cd797152f72bde05b026cc1 Mon Sep 17 00:00:00 2001 From: David Park Date: Wed, 23 Dec 2020 09:50:37 -0500 Subject: [PATCH] Fix follow in parallel migrations --- solvebio/query.py | 3 +-- solvebio/resource/dataset.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/solvebio/query.py b/solvebio/query.py index 7a71c1ab..11f70d3b 100644 --- a/solvebio/query.py +++ b/solvebio/query.py @@ -826,8 +826,7 @@ def migrate(self, target, follow=True, **kwargs): if follow: # Multiple migration objects returned if "data" in migration: - for mig in migration: - mig.follow() + self.activity(follow=True) else: migration.follow() diff --git a/solvebio/resource/dataset.py b/solvebio/resource/dataset.py index 135954e4..451f9034 100644 --- a/solvebio/resource/dataset.py +++ b/solvebio/resource/dataset.py @@ -258,8 +258,7 @@ def migrate(self, target, follow=True, **kwargs): if follow: # Multiple migration objects returned if "data" in migration: - for mig in migration: - mig.follow() + self.activity(follow=True) else: migration.follow()