aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-21 11:32:53 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-21 11:32:53 -0800
commit8232478d124d44b3988817a09d256c84157ebc4d (patch)
tree44055af12886d93c121d4841ed910039d006f7b0 /python/fatcat_tools/importers
parentde49f9c832045abd03a30be34526a64525574818 (diff)
downloadfatcat-8232478d124d44b3988817a09d256c84157ebc4d.tar.gz
fatcat-8232478d124d44b3988817a09d256c84157ebc4d.zip
grobid importer: release_date as a date
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r--python/fatcat_tools/importers/grobid_metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/grobid_metadata.py b/python/fatcat_tools/importers/grobid_metadata.py
index d525d4f7..b84f7145 100644
--- a/python/fatcat_tools/importers/grobid_metadata.py
+++ b/python/fatcat_tools/importers/grobid_metadata.py
@@ -68,7 +68,7 @@ class GrobidMetadataImporter(FatcatImporter):
release_date = None
if obj.get('date'):
# TODO: only returns year, ever? how to handle?
- release_date = datetime.datetime(year=int(obj['date'][:4]), month=1, day=1)
+ release_date = datetime.datetime(year=int(obj['date'][:4]), month=1, day=1).date()
if obj.get('doi'):
extra['doi'] = obj['doi']