From 4be11adc4ac5370062cfb0e9cddfe7b3c50d70a7 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 21 Nov 2018 10:15:18 -0800 Subject: fix datacite DOI extraction --- python/fatcat_tools/harvest/doi_registrars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/fatcat_tools/harvest/doi_registrars.py b/python/fatcat_tools/harvest/doi_registrars.py index 10492c17..3201c180 100644 --- a/python/fatcat_tools/harvest/doi_registrars.py +++ b/python/fatcat_tools/harvest/doi_registrars.py @@ -182,7 +182,7 @@ class HarvestDataciteWorker(HarvestCrossrefWorker): return resp['meta']['total'] def extract_key(self, obj): - return obj['doi'].encode('utf-8') + return obj['attributes']['doi'].encode('utf-8') def update_params(self, params, resp): params['page[number]'] = resp['meta']['page'] + 1 -- cgit v1.2.3