mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix bug where zero durations were not allowed in task times.
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user