From 1d732653ed37bb4895b4702072591b776046c302 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 13 Nov 2019 16:41:25 -0800 Subject: ingest importer fixes --- python/fatcat_tools/importers/ingest.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/fatcat_tools/importers/ingest.py b/python/fatcat_tools/importers/ingest.py index 95df5efb..dbb8149e 100644 --- a/python/fatcat_tools/importers/ingest.py +++ b/python/fatcat_tools/importers/ingest.py @@ -28,7 +28,8 @@ class IngestFileResultImporter(EntityImporter): print("Requiring GROBID status == 200") else: print("NOT checking GROBID success") - self.project_whitelist = ['fatcat-changelog'] + #self.project_whitelist = ['fatcat-changelog'] + self.project_whitelist = [] def want(self, row): """ @@ -83,12 +84,12 @@ class IngestFileResultImporter(EntityImporter): continue release_ident = release.ident break - if not release and row.get('grobid'): + if not release_ident and row.get('grobid'): # try biblio-glutton extracted hit if row['grobid'].get('fatcat_ident'): release = row['grobid']['fatcat_ident'].split('_')[-1] - if not release: + if not release_ident: self.counts['skip-release-not-found'] += 1 return None -- cgit v1.2.3