Skip to content

Commit

Permalink
Merge pull request #620 from RockefellerArchiveCenter/development
Browse files Browse the repository at this point in the history
Debugs extent inheritance
  • Loading branch information
helrond authored Sep 26, 2024
2 parents 0a7300c + 499c2b9 commit 54dcb7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merger/mergers.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def get_archivesspace_data(self, object, object_type):
if not object.get("extents"):
extent_data = self.parse_instances(object["instances"])
if object_type == "archival_object_collection" and not extent_data:
extent_data = settings.INHERIT_EXTENT and [{'value': None, "type": None}] or closest_parent_value(object, "extents")
extent_data = [{'value': None, "type": None}] if settings.INHERIT_EXTENT else closest_parent_value(object, "extents")
data["extents"] = extent_data
if object_type == "archival_object_collection":
data["linked_agents"] = closest_creators(object)
Expand Down

0 comments on commit 54dcb7f

Please sign in to comment.