From b244640288648f27ce1fc7be3f175703e0a3412b Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 6 Jun 2020 09:07:42 +0200 Subject: Add menu options to update tasks status --- src/service/tasks.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/service') diff --git a/src/service/tasks.py b/src/service/tasks.py index 0dfe94f..87194c4 100644 --- a/src/service/tasks.py +++ b/src/service/tasks.py @@ -26,3 +26,7 @@ def delete(cursor, task_ids: List[int]): db.task_tags.delete(cursor, task_ids) db.tasks.delete(cursor, task_ids) database.commit() + +def update_status(cursor, task_ids: List[int], status: Status) -> List[Task]: + db.tasks.update_status(cursor, task_ids, status) + database.commit() -- cgit v1.2.3