aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-07-13 11:55:50 -0700
committerBryan Newbold <bnewbold@archive.org>2021-07-13 11:55:56 -0700
commitc468443d325a5e091162cfb5f85697679e87eb72 (patch)
tree4da154e6990de6f67237dc48289365475bb0614f
parent8bd2a4731f48714c1ad1af2b7e80ac450d504c35 (diff)
downloadsandcrawler-c468443d325a5e091162cfb5f85697679e87eb72.tar.gz
sandcrawler-c468443d325a5e091162cfb5f85697679e87eb72.zip
another lowercase DOI in an (unused?) script
-rwxr-xr-xpython/scripts/import_grobid_metadata.py2
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']