From f2fd69486b0c47ee0e1b38618cbe06a02c826279 Mon Sep 17 00:00:00 2001 From: Hillel Arnold Date: Thu, 26 Sep 2024 11:03:12 -0400 Subject: [PATCH] debug extent inheritance --- merger/mergers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/merger/mergers.py b/merger/mergers.py index 3847d157..47acc54e 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 = 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)