Skip to content

Commit

Permalink
Merge pull request #621 from RockefellerArchiveCenter/debug-extents
Browse files Browse the repository at this point in the history
Use correct order for if/else
  • Loading branch information
helrond authored Sep 27, 2024
2 parents 499c2b9 + 387102b commit 2e01e7b
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 2e01e7b

Please sign in to comment.