aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-14 15:11:28 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-14 15:11:28 -0700
commitba3adecfaf626b92fb5231cc445ce9e07fb5f877 (patch)
treea889bb3e2d1b6d4a63e416438beeeb1f8b68fb19
parent61caceebcc5cd04b28d9859b27ac314bb2a59bbb (diff)
downloadfatcat-ba3adecfaf626b92fb5231cc445ce9e07fb5f877.tar.gz
fatcat-ba3adecfaf626b92fb5231cc445ce9e07fb5f877.zip
tune how crossref imports are filtered
-rw-r--r--python/fatcat/crossref_importer.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/fatcat/crossref_importer.py b/python/fatcat/crossref_importer.py
index 2154c8c0..38a4bc11 100644
--- a/python/fatcat/crossref_importer.py
+++ b/python/fatcat/crossref_importer.py
@@ -89,10 +89,10 @@ class FatcatCrossrefImporter(FatcatImporter):
for i, rm in enumerate(obj.get('reference', [])):
try:
year = int(rm.get('year'))
- if year > 2025 or year < 1000:
- # NOTE: will need to update/config in the future!
- # NOTE: are there crossref works with year < 1000?
- return None
+ # NOTE: will need to update/config in the future!
+ # NOTE: are there crossref works with year < 100?
+ if year > 2025 or year < 100:
+ year = None
except:
year = None
extra = dict(crossref=rm)