diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2020-12-17 20:31:11 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2020-12-17 20:31:11 -0800 |
commit | 67377db593244529fc235ad95aba8f4caa7441b8 (patch) | |
tree | 70876103a8650e98d0e0fffb3ed1a0a46455d73f /python | |
parent | 28aa515a964421abba8cefd2f43ef2bf75fe47c5 (diff) | |
download | fatcat-67377db593244529fc235ad95aba8f4caa7441b8.tar.gz fatcat-67377db593244529fc235ad95aba8f4caa7441b8.zip |
ingest: allow doaj ingest responses
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat_tools/importers/ingest.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |