summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/transform.py
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_scholar/transform.py')
-rw-r--r--fatcat_scholar/transform.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fatcat_scholar/transform.py b/fatcat_scholar/transform.py
index 13bedb9..3a7102a 100644
--- a/fatcat_scholar/transform.py
+++ b/fatcat_scholar/transform.py
@@ -798,8 +798,8 @@ def refs_from_crossref(
ref_container_name = series_title
year = ref.get("year")
- if year and year.isdigit():
- year = int(year)
+ if year:
+ year = clean_small_int(year)
else:
year = None
date = ref.get("date")