location not passed to ItemizedCarrier when assign child resource

This commit is contained in:
Xuwznln
2026-01-08 03:04:57 +08:00
parent f26eb69eca
commit bad1db5094

View File

@@ -149,6 +149,7 @@ class ItemizedCarrier(ResourcePLR):
if not reassign and self.sites[idx] is not None:
raise ValueError(f"a site with index {idx} already exists")
location = list(self.child_locations.values())[idx]
super().assign_child_resource(resource, location=location, reassign=reassign)
self.sites[idx] = resource