Exemplo n.º 1
0
 def tasks(self, *task_ids: str) -> List[CloudTask]:
     info = self._baidupcs.tasks(*task_ids)
     tasks = []
     for task_id, v in info["task_info"].items():
         v["task_id"] = task_id
         tasks.append(CloudTask.from_(v))
     return tasks
Exemplo n.º 2
0
 def list_tasks(self) -> List[CloudTask]:
     info = self._baidupcs.list_tasks()
     return [CloudTask.from_(v) for v in info["task_info"]]