aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-06-03 10:58:05 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-06-03 10:58:05 -0700
commit39829cdafecbb8f0245d4a22e0bfa3e82eb08600 (patch)
treed7aef6df046d4c196cb6244c16718dab324cd0a3 /python
parent85579a9a5205e86e39cf4e63ddb6970c928bec56 (diff)
downloadfatcat-39829cdafecbb8f0245d4a22e0bfa3e82eb08600.tar.gz
fatcat-39829cdafecbb8f0245d4a22e0bfa3e82eb08600.zip
ingest: swap ingest and file checks, to result in clearer stats/counts of skipping
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_tools/importers/ingest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_tools/importers/ingest.py b/python/fatcat_tools/importers/ingest.py
index 37956ef3..483932ad 100644
--- a/python/fatcat_tools/importers/ingest.py
+++ b/python/fatcat_tools/importers/ingest.py
@@ -112,10 +112,10 @@ class IngestFileResultImporter(EntityImporter):
The current logic is intentionally conservative as a first step.
"""
- if not self.want_file(row):
- return False
if not self.want_ingest(row):
return False
+ if not self.want_file(row):
+ return False
return True