aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-29 18:41:26 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-29 18:41:26 -0700
commit5dce3ab3b01ddd2b2f3fa8af76038f10d225008e (patch)
tree2cf2f27f398975df2d2017a539e7965001fce42d /python
parenteaf5039116fbde796d9905c4986fc6a308a36ff4 (diff)
downloadfatcat-5dce3ab3b01ddd2b2f3fa8af76038f10d225008e.tar.gz
fatcat-5dce3ab3b01ddd2b2f3fa8af76038f10d225008e.zip
make importer extid lookups faster by hiding
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_tools/importers/common.py4
1 files changed, 2 insertions, 2 deletions
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