From 8232478d124d44b3988817a09d256c84157ebc4d Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 21 Nov 2018 11:32:53 -0800 Subject: grobid importer: release_date as a date --- python/fatcat_tools/importers/grobid_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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'] -- cgit v1.2.3