diff options
author | Joris | 2020-06-06 09:07:42 +0200 |
---|---|---|
committer | Joris | 2020-06-06 09:07:42 +0200 |
commit | b244640288648f27ce1fc7be3f175703e0a3412b (patch) | |
tree | db0221e72626461837c5c30080454c1fb954a8a0 /src/service | |
parent | 3844f76d18e376777ca4d7c124df6d6b4896a361 (diff) |
Add menu options to update tasks status
Diffstat (limited to 'src/service')
-rw-r--r-- | src/service/tasks.py | 4 |
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() |