aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/fatcat/crossref_importer.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/fatcat/crossref_importer.py b/python/fatcat/crossref_importer.py
index 1adc6d70..122ecdf0 100644
--- a/python/fatcat/crossref_importer.py
+++ b/python/fatcat/crossref_importer.py
@@ -189,6 +189,11 @@ class FatcatCrossrefImporter(FatcatImporter):
# external identifiers
extids = self.lookup_ext_ids(doi=obj['DOI'].lower())
+ # TODO: filter out huge releases; we'll get them later (and fix bug in
+ # fatcatd)
+ if max(len(contribs), len(refs)) > 2500:
+ return None
+
re = fatcat_client.ReleaseEntity(
work_id=None,
title=obj['title'][0],