From 387102ba268768f8663cc9eeb05611d339ef453b Mon Sep 17 00:00:00 2001 From: Hillel Arnold Date: Fri, 27 Sep 2024 08:24:44 -0400 Subject: [PATCH] use correct order for if/else --- merger/mergers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/merger/mergers.py b/merger/mergers.py index 47acc54e..1ffc2c18 100644 --- a/merger/mergers.py +++ b/merger/mergers.py @@ -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)