aboutsummaryrefslogtreecommitdiff
path: root/src/service
diff options
context:
space:
mode:
Diffstat (limited to 'src/service')
-rw-r--r--src/service/tasks.py4
1 files changed, 4 insertions, 0 deletions
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()