def put(self): tasks = list(Todo.list_index.query('1')) # list id with Todo.batch_write() as batch: for task in tasks: task.done = True batch.save(task) return '', 204