summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/mergers/releases.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-29 14:31:26 -0800
committerBryan Newbold <bnewbold@robocracy.org>2021-11-29 14:31:26 -0800
commitec2809ef2ac51c992463839c1e3451927f5e1661 (patch)
treed95c1b17e3bd8fc93179551ee130004c73513c16 /python/fatcat_tools/mergers/releases.py
parenteb60449cdc9614ec7eda79b8481d1d8487b9a5f6 (diff)
parent487923dc81d877207556f8a90a3ce048fe6bafb5 (diff)
downloadfatcat-ec2809ef2ac51c992463839c1e3451927f5e1661.tar.gz
fatcat-ec2809ef2ac51c992463839c1e3451927f5e1661.zip
Merge branch 'bnewbold-container-merger'
Diffstat (limited to 'python/fatcat_tools/mergers/releases.py')
-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: