diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-12-26 18:20:17 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-12-26 18:20:54 -0800 |
commit | f3d75482a55b9403e03a4b46475e9deb1c2b082e (patch) | |
tree | 5e5733c0dd6bb63a971246cd3f23bee16ee97af8 /python | |
parent | ad39a2a347b356fe9bb7dd96d79e2fdbf4844b9c (diff) | |
download | fatcat-f3d75482a55b9403e03a4b46475e9deb1c2b082e.tar.gz fatcat-f3d75482a55b9403e03a4b46475e9deb1c2b082e.zip |
orcid: skip non-person ORCID records
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat_tools/importers/orcid.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/orcid.py b/python/fatcat_tools/importers/orcid.py index 0a2c8610..554e052f 100644 --- a/python/fatcat_tools/importers/orcid.py +++ b/python/fatcat_tools/importers/orcid.py @@ -41,6 +41,10 @@ class OrcidImporter(EntityImporter): obj is a python dict (parsed from json). returns a CreatorEntity """ + + if not 'person' in obj: + return False + name = obj['person']['name'] if not name: return None |