From 234dfa11d4e552d4ef784d8c7b13bfdaf42c597c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 15 Jan 2020 14:03:50 -0800 Subject: ingest: allow more sources to auto-import --- python/fatcat_tools/importers/ingest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/fatcat_tools/importers') diff --git a/python/fatcat_tools/importers/ingest.py b/python/fatcat_tools/importers/ingest.py index 16643eb5..e53dcae5 100644 --- a/python/fatcat_tools/importers/ingest.py +++ b/python/fatcat_tools/importers/ingest.py @@ -29,6 +29,7 @@ class IngestFileResultImporter(EntityImporter): self.ingest_request_source_whitelist = [ 'fatcat-changelog', 'fatcat-ingest-container', + 'fatcat-ingest', 'arabesque', ] if kwargs.get('skip_source_whitelist', False): @@ -57,7 +58,7 @@ class IngestFileResultImporter(EntityImporter): self.counts['skip-ingest_request_source'] += 1 return False if source.startswith('arabesque'): - if row['reqeust'].get('link_source') not in ('arxiv', 'pmc'): + if row['reqeust'].get('link_source') not in ('arxiv', 'pmc', 'unpaywall', 'doi'): self.counts['skip-arabesque-source'] += 1 return False if source.startswith('savepapernow'): -- cgit v1.2.3