diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-08-26 18:16:13 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-08-26 18:16:13 -0400 |
commit | c96db866eaa188ea73548a58716f3c0a46bc011c (patch) | |
tree | 694344242820533697fd36baa531c3f60daef17e /screens/TimeSlot/Body.gd | |
parent | febc05f628793d252066a173e8fce0826b2190fd (diff) | |
download | Planner-c96db866eaa188ea73548a58716f3c0a46bc011c.tar.gz Planner-c96db866eaa188ea73548a58716f3c0a46bc011c.zip |
tabs to spaces
Diffstat (limited to 'screens/TimeSlot/Body.gd')
-rw-r--r-- | screens/TimeSlot/Body.gd | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/screens/TimeSlot/Body.gd b/screens/TimeSlot/Body.gd index aa1f352..5bca112 100644 --- a/screens/TimeSlot/Body.gd +++ b/screens/TimeSlot/Body.gd @@ -1,13 +1,13 @@ extends VBoxContainer func populate(data): - var start_time = DataHelpers.timeofday(data.start_time) - var end_time = DataHelpers.timeofday(data.end_time) - $"%TimeRange".text = "%s - %s" % [start_time, end_time] - var tasks = Task.get_by_timeslot(data.id) - var TaskItem = load("res://screens/TimeSlot/TaskItem.tscn") - var task_list = $"%TaskList" - for task in tasks: - var item = TaskItem.instance() - item.populate(task) - task_list.add_child(item) + var start_time = DataHelpers.timeofday(data.start_time) + var end_time = DataHelpers.timeofday(data.end_time) + $"%TimeRange".text = "%s - %s" % [start_time, end_time] + var tasks = Task.get_by_timeslot(data.id) + var TaskItem = load("res://screens/TimeSlot/TaskItem.tscn") + var task_list = $"%TaskList" + for task in tasks: + var item = TaskItem.instance() + item.populate(task) + task_list.add_child(item) |