Skip to content

Commit

Permalink
Merge pull request #622 from RockefellerArchiveCenter/development
Browse files Browse the repository at this point in the history
Use correct order in extents if/else
  • Loading branch information
helrond authored Sep 27, 2024
2 parents 54dcb7f + 2e01e7b commit 097c11d
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 = [{'value': None, "type": None}] if settings.INHERIT_EXTENT else closest_parent_value(object, "extents")
extent_data = closest_parent_value(object, "extents") if settings.INHERIT_EXTENT else [{'value': None, "type": None}]
data["extents"] = extent_data
if object_type == "archival_object_collection":
data["linked_agents"] = closest_creators(object)
Expand Down

0 comments on commit 097c11d

Please sign in to comment.