Allow Task.get_tasks() to filter by list of project ids

This commit is contained in:
allegroai 2020-06-21 23:31:14 +03:00
parent 2c5e2bb849
commit f3621feabb
2 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@ import os
import shutil
import sys
import threading
import weakref
from enum import Enum
from random import randint
from tempfile import mkstemp

View File

@ -2330,7 +2330,7 @@ class Task(_Task):
cls._get_default_session(),
tasks.GetAllRequest(
id=task_ids,
project=[project.id] if project else None,
project=[project.id] if project else kwargs.pop('project', None),
name=task_name if task_name else None,
only_fields=only_fields,
**kwargs