|
|
@@ -193,7 +193,8 @@ class Job(object):
|
|
|
def filter_tasks(self, task_types=None, task_states=None, task_text=None):
|
|
|
return [Task(self, task) for task in self.api.tasks(self.id).get('tasks', {}).get('task', [])
|
|
|
if (not task_types or task['type'].lower() in task_types) and
|
|
|
- (not task_states or task['state'].lower() in task_states)]
|
|
|
+ (not task_states or task['state'].lower() in task_states) and
|
|
|
+ (not task_text or task_text.lower() in str(task).lower())]
|
|
|
|
|
|
@property
|
|
|
def job_attempts(self):
|