From ec28d3d0aff6ebec270e4a7608ad64cf9ebbb7fa Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 24 May 2024 17:03:30 +0500 Subject: [PATCH] black format --- src/blenderbim/blenderbim/tool/sequence.py | 24 ++++++++++++++-------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/blenderbim/blenderbim/tool/sequence.py b/src/blenderbim/blenderbim/tool/sequence.py index 2f571effb4..8d36a975d4 100644 --- a/src/blenderbim/blenderbim/tool/sequence.py +++ b/src/blenderbim/blenderbim/tool/sequence.py @@ -835,12 +835,16 @@ class Sequence(blenderbim.core.tool.Sequence): def create_task_bar_data(tasks, vertical_increment, collection): props = bpy.context.scene.BIMWorkScheduleProperties settings = { - "viz_start": parser.parse(props.visualisation_start, dayfirst=True, fuzzy=True) - if props.visualisation_start - else None, - "viz_finish": parser.parse(props.visualisation_finish, dayfirst=True, fuzzy=True) - if props.visualisation_finish - else None, + "viz_start": ( + parser.parse(props.visualisation_start, dayfirst=True, fuzzy=True) + if props.visualisation_start + else None + ), + "viz_finish": ( + parser.parse(props.visualisation_finish, dayfirst=True, fuzzy=True) + if props.visualisation_finish + else None + ), "start_frame": bpy.context.scene.frame_start, "end_frame": bpy.context.scene.frame_end, } @@ -1518,9 +1522,11 @@ class Sequence(blenderbim.core.tool.Sequence): "pParent": task.Nests[0].RelatingObject.id() if task.Nests else 0, "pOpen": 1, "pCost": 1, - "ifcduration": str(ifcopenshell.util.date.ifc2datetime(task_time.ScheduleDuration)) - if (task_time and task_time.ScheduleDuration) - else "", + "ifcduration": ( + str(ifcopenshell.util.date.ifc2datetime(task_time.ScheduleDuration)) + if (task_time and task_time.ScheduleDuration) + else "" + ), "resourceUsage": resources_usage, } if task_time and task_time.IsCritical: