From 67377db593244529fc235ad95aba8f4caa7441b8 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 17 Dec 2020 20:31:11 -0800 Subject: ingest: allow doaj ingest responses --- python/fatcat_tools/importers/ingest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/fatcat_tools/importers/ingest.py b/python/fatcat_tools/importers/ingest.py index 1e04e712..44e6dc98 100644 --- a/python/fatcat_tools/importers/ingest.py +++ b/python/fatcat_tools/importers/ingest.py @@ -36,6 +36,7 @@ class IngestFileResultImporter(EntityImporter): 'unpaywall', 's2-corpus', 's2', + 'doaj', ] if kwargs.get('skip_source_allowlist', False): self.ingest_request_source_allowlist = [] @@ -84,7 +85,7 @@ class IngestFileResultImporter(EntityImporter): self.counts['skip-ingest_request_source'] += 1 return False - if row['request'].get('link_source') not in ('arxiv', 'pmc', 'unpaywall', 'doi', 'mag', 's2'): + if row['request'].get('link_source') not in ('arxiv', 'pmc', 'unpaywall', 'doi', 'mag', 's2', 'doaj'): self.counts['skip-link-source'] += 1 return False -- cgit v1.2.3