summaryrefslogtreecommitdiffstats
path: root/python/parse_jalc_xml.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-15 10:47:26 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-21 11:41:29 -0700
commit4cff530fa3a49e845a2c21bbc85d74a92a3e2b06 (patch)
treec1b6bfbf99f020e65dcde983cce7a040cb401775 /python/parse_jalc_xml.py
parent53f48200960a28424bb1cfa3c3e42f2d035c6109 (diff)
downloadfatcat-4cff530fa3a49e845a2c21bbc85d74a92a3e2b06.tar.gz
fatcat-4cff530fa3a49e845a2c21bbc85d74a92a3e2b06.zip
fix lint bugs in parsers
Diffstat (limited to 'python/parse_jalc_xml.py')
-rw-r--r--python/parse_jalc_xml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/parse_jalc_xml.py b/python/parse_jalc_xml.py
index 7df79421..d7817df9 100644
--- a/python/parse_jalc_xml.py
+++ b/python/parse_jalc_xml.py
@@ -94,7 +94,7 @@ class JalcXmlParser():
if date:
date = date.string
if len(date) is 10:
- release_date = datetime.datetime.strptime(state['completed-date'], DATE_FMT).date()
+ 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: