diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-11-13 15:41:23 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-11-15 16:46:26 -0800 |
commit | c59ab02bb9c9e486c98e758f0098be09c1973b42 (patch) | |
tree | 40d690e8e8a42ac2f8ddec800d1f91b9aa3404e2 /python/fatcat_tools/transforms | |
parent | 31f237a6150f22676e93902a3597461ea954dc2c (diff) | |
download | fatcat-c59ab02bb9c9e486c98e758f0098be09c1973b42.tar.gz fatcat-c59ab02bb9c9e486c98e758f0098be09c1973b42.zip |
more ingest importer comments and counts
Diffstat (limited to 'python/fatcat_tools/transforms')
-rw-r--r-- | python/fatcat_tools/transforms/ingest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/transforms/ingest.py b/python/fatcat_tools/transforms/ingest.py index eee60630..293bc5e6 100644 --- a/python/fatcat_tools/transforms/ingest.py +++ b/python/fatcat_tools/transforms/ingest.py @@ -45,7 +45,7 @@ def release_ingest_request(release, oa_only=False, project='fatcat'): if v: ext_ids[k] = v - if oa_only and not ext_ids['arxiv'] and not ext_ids['pmcid']: + if oa_only and not ext_ids.get('arxiv') and not ext_ids.get('pmcid'): es = release_to_elasticsearch(release) if not es['is_oa']: return None |