From 25b6cd2a7778ba7abd65a5163b6a963530b96510 Mon Sep 17 00:00:00 2001 From: Vlad Date: Thu, 16 Sep 2021 13:13:00 +0300 Subject: [PATCH] Get task summary typo fix Fixes #433 The self.task_summary() method of Item does not exist. But this method is used on the item_obj.no_tasks_pending() call, when working with the CLI. Rename the Item.tasks_summary() call to the Item.get_task_summary() inside the Item.no_tasks_pending() method. --- internetarchive/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internetarchive/item.py b/internetarchive/item.py index c38291cf..2a67032d 100644 --- a/internetarchive/item.py +++ b/internetarchive/item.py @@ -256,7 +256,7 @@ def no_tasks_pending(self, params=None, request_kwargs=None): :rtype: bool :returns: `True` if no tasks are pending, otherwise `False`. """ - return all(x == 0 for x in self.task_summary(params, request_kwargs).values()) + return all(x == 0 for x in self.get_task_summary(params, request_kwargs).values()) def get_all_item_tasks(self, params=None, request_kwargs=None): """Get a list of all tasks for the item, pending and complete.