aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-24 18:21:27 -0800
committerBryan Newbold <bnewbold@robocracy.org>2021-11-24 18:21:27 -0800
commitd1c8a582d31dc6f3254e477774aea0fa75fc8b23 (patch)
tree51bdc6d4d03433e56611a4da25e387ffb90b68e6
parent20106ce2c65e6f07e5f27ecbc8665c68d1aa31c2 (diff)
downloadfatcat-d1c8a582d31dc6f3254e477774aea0fa75fc8b23.tar.gz
fatcat-d1c8a582d31dc6f3254e477774aea0fa75fc8b23.zip
release merger: same editgroup_id fixes as for file and container mergers
-rw-r--r--python/fatcat_tools/mergers/releases.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/fatcat_tools/mergers/releases.py b/python/fatcat_tools/mergers/releases.py
index 1f995b00..0149bbbe 100644
--- a/python/fatcat_tools/mergers/releases.py
+++ b/python/fatcat_tools/mergers/releases.py
@@ -92,7 +92,6 @@ class ReleaseMerger(EntityMerger):
updated_entities = 0
releases = dict()
existing_redirects: Dict[str, List[str]] = dict()
- eg_id = self.get_editgroup_id()
all_ids = dupe_ids.copy()
if primary_id:
@@ -113,6 +112,11 @@ class ReleaseMerger(EntityMerger):
updated_work_ids = []
redirected_release_ids = []
+ if self.dry_run_mode:
+ eg_id = "dummy-editgroup-id"
+ else:
+ eg_id = self.get_editgroup_id()
+
# execute all the release redirects
for release in releases.values():
if release.ident == primary_id: