Fix bug where zero durations were not allowed in task times.

This commit is contained in:
Dion Moult
2022-01-21 18:52:40 +11:00
parent 68a43b92ee
commit 817fdead9b
2 changed files with 63 additions and 1 deletions
@@ -50,7 +50,7 @@ class Usecase:
)
for name, value in self.settings["attributes"].items():
if value:
if value is not None:
if "Start" in name or "Finish" in name or name == "StatusTime":
value = ifcopenshell.util.date.datetime2ifc(value, "IfcDateTime")
elif name == "ScheduleDuration" or name == "ActualDuration" or name == "RemainingTime":