Skip to content

Commit

Permalink
Merge pull request #619 from RockefellerArchiveCenter/debug-extents
Browse files Browse the repository at this point in the history
Debugs extent inheritance
  • Loading branch information
helrond authored Sep 26, 2024
2 parents c155811 + f2fd694 commit 499c2b9
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 499c2b9

Please sign in to comment.