aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_client/models/release_entity.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-28 12:32:43 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-28 12:34:01 -0700
commitd304edc994bd1c0620c500a1cda8b948051f84f1 (patch)
treefc2f707577e240d0cd8ccf3af845834afde46f79 /python/fatcat_client/models/release_entity.py
parentbfb137bed3ab6ac63b24815b7e11f23645b78316 (diff)
downloadfatcat-d304edc994bd1c0620c500a1cda8b948051f84f1.tar.gz
fatcat-d304edc994bd1c0620c500a1cda8b948051f84f1.zip
crossref_importer: auto-create work entities
This now means that work_type isn't populated, but imports should run significantly faster.
Diffstat (limited to 'python/fatcat_client/models/release_entity.py')
-rw-r--r--python/fatcat_client/models/release_entity.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/fatcat_client/models/release_entity.py b/python/fatcat_client/models/release_entity.py
index d74b9823..c28d03f7 100644
--- a/python/fatcat_client/models/release_entity.py
+++ b/python/fatcat_client/models/release_entity.py
@@ -133,7 +133,8 @@ class ReleaseEntity(object):
self.release_type = release_type
if container_id is not None:
self.container_id = container_id
- self.work_id = work_id
+ if work_id is not None:
+ self.work_id = work_id
self.title = title
if state is not None:
self.state = state
@@ -441,8 +442,6 @@ class ReleaseEntity(object):
:param work_id: The work_id of this ReleaseEntity. # noqa: E501
:type: str
"""
- if work_id is None:
- raise ValueError("Invalid value for `work_id`, must not be `None`") # noqa: E501
self._work_id = work_id