def update_status(self, status, allowed_statuses=None): if allowed_statuses: db.task_update_status(self.task["uuid"], status, allowed_statuses) else: self._update({"status": status})
def update_status(self, status, allowed_statuses=None): if allowed_statuses: db.task_update_status(self.task["uuid"], status, allowed_statuses) else: self._update({"status": status})