mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Minor fix
This commit is contained in:
@@ -77,11 +77,14 @@ class Usecase:
|
|||||||
if starts and finishes:
|
if starts and finishes:
|
||||||
start = max(starts)
|
start = max(starts)
|
||||||
finish = max(finishes)
|
finish = max(finishes)
|
||||||
potential_finish = ifcopenshell.util.sequence.get_finish_date(
|
potential_finish = datetime.datetime.combine(
|
||||||
start,
|
ifcopenshell.util.sequence.get_finish_date(
|
||||||
duration,
|
start,
|
||||||
task.TaskTime.DurationType,
|
duration,
|
||||||
self.get_calendar(task),
|
task.TaskTime.DurationType,
|
||||||
|
self.get_calendar(task),
|
||||||
|
),
|
||||||
|
datetime.datetime.min.time(),
|
||||||
)
|
)
|
||||||
if potential_finish > finish:
|
if potential_finish > finish:
|
||||||
start_ifc = ifcopenshell.util.date.datetime2ifc(start, "IfcDateTime")
|
start_ifc = ifcopenshell.util.date.datetime2ifc(start, "IfcDateTime")
|
||||||
|
|||||||
Reference in New Issue
Block a user