Skip to content

Commit 52fd5a5

Browse files
committed
version 0.3.3
update urllib3 fix reserve_doi to properly return a single record response. Signed-off-by: Neal Ensor <ensorn@osti.gov>
1 parent 41fbaec commit 52fd5a5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "elinkapi"
7-
version = "0.3.2"
7+
version = "0.3.3"
88
authors = [
99
{ name="Jacob Samar", email="samarj@osti.gov" },
1010
{ name="Neal Ensor", email="ensorn@osti.gov" }

src/elinkapi/elinkapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def reserve_doi(self, record):
179179

180180
self._check_status_code(response)
181181

182-
return self._convert_response_to_records(response)
182+
return self._convert_response_to_records(response)[0]
183183

184184
def post_new_record(self, record, state="save"):
185185
"""Create a new metadata Record with OSTI

0 commit comments

Comments
 (0)