aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-05-22 16:22:23 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-05-22 16:22:23 -0700
commitcc18d2c6eee7abf671f9d585b85b0360ded90598 (patch)
tree63543a5db7c76dc0326f77b85772f1364d5bd547 /python/fatcat_tools
parentd8cf02dbdc6848be4de2710e54f4463d702b6e7c (diff)
parentcfc5d104e94a2f5d51878e33930e3ba83f0701c8 (diff)
downloadfatcat-cc18d2c6eee7abf671f9d585b85b0360ded90598.tar.gz
fatcat-cc18d2c6eee7abf671f9d585b85b0360ded90598.zip
Merge remote-tracking branch 'github/master'
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/importers/jalc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_tools/importers/jalc.py b/python/fatcat_tools/importers/jalc.py
index c2adc0d6..e30bb233 100644
--- a/python/fatcat_tools/importers/jalc.py
+++ b/python/fatcat_tools/importers/jalc.py
@@ -201,11 +201,11 @@ class JalcImporter(EntityImporter):
date = record.date or None
if date:
date = date.string
- if len(date) is 10:
+ if len(date) == 10:
release_date = datetime.datetime.strptime(date['completed-date'], DATE_FMT).date()
release_year = release_date.year
release_date = release_date.isoformat()
- elif len(date) is 4 and date.isdigit():
+ elif len(date) == 4 and date.isdigit():
release_year = int(date)
pages = None