summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/transforms
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-11-13 15:41:23 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-11-15 16:46:26 -0800
commitc59ab02bb9c9e486c98e758f0098be09c1973b42 (patch)
tree40d690e8e8a42ac2f8ddec800d1f91b9aa3404e2 /python/fatcat_tools/transforms
parent31f237a6150f22676e93902a3597461ea954dc2c (diff)
downloadfatcat-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.py2
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