diff --git a/GTG/core/tasks.py b/GTG/core/tasks.py index 9446b8140..906843d8d 100644 --- a/GTG/core/tasks.py +++ b/GTG/core/tasks.py @@ -752,10 +752,7 @@ def new(self, title: str = None, parent: UUID = None) -> Task: task = Task(id=tid, title=title) task.date_added = Date.now() - if parent: - self.add(task, parent) - else: - self.add(task) + self.add(task, parent) return task