run black

This commit is contained in:
Sigma Dimensions
2023-05-02 02:27:32 +01:00
parent 0ba79dc105
commit 2c31fc6b25
7 changed files with 58 additions and 11 deletions
@@ -165,7 +165,9 @@ class Usecase:
"IfcRelAssignsToControl",
**{
"GlobalId": ifcopenshell.guid.new(),
"OwnerHistory": ifcopenshell.api.run("owner.create_owner_history", self.file),
"OwnerHistory": ifcopenshell.api.run(
"owner.create_owner_history", self.file
),
"RelatedObjects": [task],
"RelatingControl": self.settings["work_schedule"],
}
@@ -178,5 +180,9 @@ class Usecase:
relating_object=self.settings["parent_task"],
)
if self.settings["parent_task"].Identification:
task.Identification = self.settings["parent_task"].Identification + "." + str(len(rel.RelatedObjects))
task.Identification = (
self.settings["parent_task"].Identification
+ "."
+ str(len(rel.RelatedObjects))
)
return task