From 39829cdafecbb8f0245d4a22e0bfa3e82eb08600 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 3 Jun 2021 10:58:05 -0700 Subject: ingest: swap ingest and file checks, to result in clearer stats/counts of skipping --- python/fatcat_tools/importers/ingest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/fatcat_tools') 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 -- cgit v1.2.3