def complete(task_id): ''' Mark a task completed. arg: task_id - the task to mark as completed ''' Tasks.change_complete(task_id) return '{"status": "success"}'
def uncomplete(task_id): ''' Mark a task as not completed arg: task_id - the task to mark as not completed ''' Tasks.change_complete(task_id, False) return '{"status": "success"}'