mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix bug where editing a schedule finish date by itself wouldn't work
This commit is contained in:
@@ -16,12 +16,12 @@ class Usecase:
|
||||
|
||||
# If the user specifies both an end date and a duration, the duration takes priority
|
||||
if (
|
||||
"ScheduleDuration" in self.settings["attributes"].keys()
|
||||
self.settings["attributes"].get("ScheduleDuration", None)
|
||||
and "ScheduleFinish" in self.settings["attributes"].keys()
|
||||
):
|
||||
del self.settings["attributes"]["ScheduleFinish"]
|
||||
if (
|
||||
"ActualDuration" in self.settings["attributes"].keys()
|
||||
self.settings["attributes"].get("ActualDuration", None)
|
||||
and "ActualFinish" in self.settings["attributes"].keys()
|
||||
):
|
||||
del self.settings["attributes"]["ActualFinish"]
|
||||
|
||||
Reference in New Issue
Block a user