mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Further fix to task_time durations editing
This commit is contained in:
@@ -12,10 +12,9 @@ class Usecase:
|
|||||||
|
|
||||||
def execute(self):
|
def execute(self):
|
||||||
# If the user specifies both an end date and a duration, the duration takes priority
|
# If the user specifies both an end date and a duration, the duration takes priority
|
||||||
if "ScheduleDuration" in self.settings["attributes"].keys():
|
if "ScheduleDuration" in self.settings["attributes"].keys() and "ScheduleFinish" in self.settings["attributes"].keys():
|
||||||
if self.settings["task_time"].ScheduleFinish:
|
del self.settings["attributes"]["ScheduleFinish"]
|
||||||
del self.settings["attributes"]["ScheduleFinish"]
|
if "ActualDuration" in self.settings["attributes"].keys() and "ActualFinish" in self.settings["attributes"].keys():
|
||||||
if "ActualDuration" in self.settings["attributes"].keys():
|
|
||||||
del self.settings["attributes"]["ActualFinish"]
|
del self.settings["attributes"]["ActualFinish"]
|
||||||
|
|
||||||
for name, value in self.settings["attributes"].items():
|
for name, value in self.settings["attributes"].items():
|
||||||
|
|||||||
Reference in New Issue
Block a user