From 5dce3ab3b01ddd2b2f3fa8af76038f10d225008e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 29 May 2019 18:41:26 -0700 Subject: make importer extid lookups faster by hiding --- python/fatcat_tools/importers/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/fatcat_tools') diff --git a/python/fatcat_tools/importers/common.py b/python/fatcat_tools/importers/common.py index 43ca1b10..db483304 100644 --- a/python/fatcat_tools/importers/common.py +++ b/python/fatcat_tools/importers/common.py @@ -440,7 +440,7 @@ class EntityImporter: return self._doi_id_map[doi] release_id = None try: - rv = self.api.lookup_release(doi=doi) + rv = self.api.lookup_release(doi=doi, hide="abstracts,refs,contribs") release_id = rv.ident except ApiException as ae: # If anything other than a 404 (not found), something is wrong @@ -456,7 +456,7 @@ class EntityImporter: return self._pmid_id_map[pmid] release_id = None try: - rv = self.api.lookup_release(pmid=pmid) + rv = self.api.lookup_release(pmid=pmid, hide="abstracts,refs,contribs") release_id = rv.ident except ApiException as ae: # If anything other than a 404 (not found), something is wrong -- cgit v1.2.3