diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-21 11:32:53 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-21 11:32:53 -0800 |
commit | 8232478d124d44b3988817a09d256c84157ebc4d (patch) | |
tree | 44055af12886d93c121d4841ed910039d006f7b0 /python/fatcat_tools/importers/grobid_metadata.py | |
parent | de49f9c832045abd03a30be34526a64525574818 (diff) | |
download | fatcat-8232478d124d44b3988817a09d256c84157ebc4d.tar.gz fatcat-8232478d124d44b3988817a09d256c84157ebc4d.zip |
grobid importer: release_date as a date
Diffstat (limited to 'python/fatcat_tools/importers/grobid_metadata.py')
-rw-r--r-- | python/fatcat_tools/importers/grobid_metadata.py | 2 |
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'] |