mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
ifcopenshell.api.run to use explicit kwargs instead of unpacking
This commit is contained in:
@@ -328,7 +328,7 @@ class Usecase:
|
||||
return self.create_material_association(material)
|
||||
previous_related_objects = set(rel.RelatedObjects)
|
||||
rel.RelatedObjects = list(previous_related_objects | self.products)
|
||||
ifcopenshell.api.owner.update_owner_history(self.file, **{"element": rel})
|
||||
ifcopenshell.api.owner.update_owner_history(self.file, element=rel)
|
||||
return rel
|
||||
|
||||
def create_material_association(
|
||||
|
||||
@@ -132,4 +132,4 @@ class Usecase:
|
||||
ifcopenshell.util.element.remove_deep2(self.file, history)
|
||||
continue
|
||||
rel.RelatedObjects = list(related_objects)
|
||||
ifcopenshell.api.owner.update_owner_history(self.file, **{"element": rel})
|
||||
ifcopenshell.api.owner.update_owner_history(self.file, element=rel)
|
||||
|
||||
Reference in New Issue
Block a user