diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-09 19:46:55 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-09 19:46:55 -0800 |
commit | fd0cf6b55567e3081b9e57e2423d6d0e529ace41 (patch) | |
tree | 8ab79008ae1fc19d6af381532dcb888538ad7401 /python/fatcat_tools/cleanups/file_short_wayback_ts.py | |
parent | 415cc3c78940247bcb48afcb62a612fec03261eb (diff) | |
download | fatcat-fd0cf6b55567e3081b9e57e2423d6d0e529ace41.tar.gz fatcat-fd0cf6b55567e3081b9e57e2423d6d0e529ace41.zip |
cleanups: add more state=active checks
Diffstat (limited to 'python/fatcat_tools/cleanups/file_short_wayback_ts.py')
-rw-r--r-- | python/fatcat_tools/cleanups/file_short_wayback_ts.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/fatcat_tools/cleanups/file_short_wayback_ts.py b/python/fatcat_tools/cleanups/file_short_wayback_ts.py index e2595912..bdd49f9b 100644 --- a/python/fatcat_tools/cleanups/file_short_wayback_ts.py +++ b/python/fatcat_tools/cleanups/file_short_wayback_ts.py @@ -119,6 +119,10 @@ class FileShortWaybackTimestampCleanup(EntityImporter): self.counts["skip-existing-not-found"] += 1 return False + if existing.state != "active": + self.counts["skip-existing-entity-state"] += 1 + return False + if existing.sha1 != fe.sha1: self.counts["skip-existing-mismatch"] += 1 return False |