diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-29 14:31:26 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-29 14:31:26 -0800 |
commit | ec2809ef2ac51c992463839c1e3451927f5e1661 (patch) | |
tree | d95c1b17e3bd8fc93179551ee130004c73513c16 /python/fatcat_tools/mergers/common.py | |
parent | eb60449cdc9614ec7eda79b8481d1d8487b9a5f6 (diff) | |
parent | 487923dc81d877207556f8a90a3ce048fe6bafb5 (diff) | |
download | fatcat-ec2809ef2ac51c992463839c1e3451927f5e1661.tar.gz fatcat-ec2809ef2ac51c992463839c1e3451927f5e1661.zip |
Merge branch 'bnewbold-container-merger'
Diffstat (limited to 'python/fatcat_tools/mergers/common.py')
-rw-r--r-- | python/fatcat_tools/mergers/common.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/fatcat_tools/mergers/common.py b/python/fatcat_tools/mergers/common.py index e25f8194..f8197519 100644 --- a/python/fatcat_tools/mergers/common.py +++ b/python/fatcat_tools/mergers/common.py @@ -111,7 +111,8 @@ class EntityMerger(EntityImporter): else: self.counts["skip"] += 1 if self._edit_count >= self.edit_batch_size: - self.api.accept_editgroup(self._editgroup_id) + if not self.dry_run_mode: + self.api.accept_editgroup(self._editgroup_id) self._editgroup_id = None self._edit_count = 0 self._idents_inflight = [] @@ -128,7 +129,8 @@ class EntityMerger(EntityImporter): def finish(self) -> Counter: if self._edit_count > 0: - self.api.accept_editgroup(self._editgroup_id) + if not self.dry_run_mode: + self.api.accept_editgroup(self._editgroup_id) self._editgroup_id = None self._edit_count = 0 self._idents_inflight = [] |