diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-07-13 11:55:50 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-07-13 11:55:56 -0700 |
commit | c468443d325a5e091162cfb5f85697679e87eb72 (patch) | |
tree | 4da154e6990de6f67237dc48289365475bb0614f /python | |
parent | 8bd2a4731f48714c1ad1af2b7e80ac450d504c35 (diff) | |
download | sandcrawler-c468443d325a5e091162cfb5f85697679e87eb72.tar.gz sandcrawler-c468443d325a5e091162cfb5f85697679e87eb72.zip |
another lowercase DOI in an (unused?) script
Diffstat (limited to 'python')
-rwxr-xr-x | python/scripts/import_grobid_metadata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/scripts/import_grobid_metadata.py b/python/scripts/import_grobid_metadata.py index 3d2e14c..d01b526 100755 --- a/python/scripts/import_grobid_metadata.py +++ b/python/scripts/import_grobid_metadata.py @@ -59,7 +59,7 @@ def parse_grobid_json(obj): release_date = datetime.datetime(year=obj['date'], month=1, day=1) if obj.get('doi'): - extra['doi'] = obj['doi'] + extra['doi'] = obj['doi'].lower() if obj['journal'].get('name'): extra['container_name'] = obj['journal']['name'] |