diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-21 19:45:37 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-21 19:45:37 -0700 |
commit | aa5c9f1300088d35393e92dc21dcd62b949984cd (patch) | |
tree | b71fbc73eab256619045d53e0e823bb8f7dffef5 /python/fatcat_tools/importers | |
parent | df04c515d6bd09a1b8fb398ed67c24754d852ed8 (diff) | |
download | fatcat-aa5c9f1300088d35393e92dc21dcd62b949984cd.tar.gz fatcat-aa5c9f1300088d35393e92dc21dcd62b949984cd.zip |
yet another JALC edge-case
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r-- | python/fatcat_tools/importers/jalc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/jalc.py b/python/fatcat_tools/importers/jalc.py index 24da60ea..8dd4f3e5 100644 --- a/python/fatcat_tools/importers/jalc.py +++ b/python/fatcat_tools/importers/jalc.py @@ -174,7 +174,7 @@ class JalcImporter(EntityImporter): 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: + elif len(date) is 4 and date.isdigit(): release_year = int(date) pages = None |