Skip to content

Commit

Permalink
Allow Task.get_tasks() to filter by list of project ids
Browse files Browse the repository at this point in the history
  • Loading branch information
allegroai committed Jun 21, 2020
1 parent 2c5e2bb commit f3621fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion trains/binding/frameworks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import shutil
import sys
import threading
import weakref
from enum import Enum
from random import randint
from tempfile import mkstemp
Expand Down
2 changes: 1 addition & 1 deletion trains/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -2330,7 +2330,7 @@ def _query_tasks(cls, task_ids=None, project_name=None, task_name=None, **kwargs
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
Expand Down

0 comments on commit f3621fe

Please sign in to comment.