diff options
author | Joris | 2020-06-01 09:11:02 +0200 |
---|---|---|
committer | Joris | 2020-06-01 09:11:02 +0200 |
commit | 3844f76d18e376777ca4d7c124df6d6b4896a361 (patch) | |
tree | 425a2380f960f81f929b1b1b6e860bd42626127d /src/gui/tasks/dialog.py | |
parent | adfab777568215d3c72facf07b734c1ff6046d78 (diff) |
Separate tasks panel on status
Diffstat (limited to 'src/gui/tasks/dialog.py')
-rw-r--r-- | src/gui/tasks/dialog.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/tasks/dialog.py b/src/gui/tasks/dialog.py index 1471910..3233dd6 100644 --- a/src/gui/tasks/dialog.py +++ b/src/gui/tasks/dialog.py @@ -3,16 +3,17 @@ from typing import List from model.tag import Tag from model.task import Task, ValidTaskForm +from model.status import Status import database import db.task_tags import db.tasks import gui.tasks.form.widget import service.tasks -def add(parent_widget, add_task_signal): +def add(parent_widget, status: Status, add_task_signal): def on_add(task_form: ValidTaskForm): - task = service.tasks.create(database.cursor(), task_form) + task = service.tasks.create(database.cursor(), status, task_form) add_task_signal.emit(task, task_form.tags) return widget(parent_widget, "Add a task", "add", None, [], on_add) |