From 3844f76d18e376777ca4d7c124df6d6b4896a361 Mon Sep 17 00:00:00 2001
From: Joris
Date: Mon, 1 Jun 2020 09:11:02 +0200
Subject: Separate tasks panel on status

---
 src/gui/tasks/dialog.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/gui/tasks/dialog.py')

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)
-- 
cgit v1.2.3