mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Fix bugs in 17642ca4e9
This commit is contained in:
@@ -143,5 +143,5 @@ class Usecase:
|
||||
|
||||
def set_task_duration(self, duration: float) -> None:
|
||||
if not (task_time := self.task.TaskTime):
|
||||
ifcopenshell.api.sequence.add_task_time(self.file, task=self.task)
|
||||
task_time = ifcopenshell.api.sequence.add_task_time(self.file, task=self.task)
|
||||
task_time.ScheduleDuration = f"P{duration}D"
|
||||
|
||||
Reference in New Issue
Block a user