Skip to content

Commit

Permalink
Consistent naming in client arguments - for initiating user and org i…
Browse files Browse the repository at this point in the history
…n task posting
  • Loading branch information
bartvanb committed Nov 15, 2022
1 parent 9d69067 commit dd4696c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vantage6-client/vantage6/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ def get(self, id_: int, include_results: bool = False) -> dict:
return self.parent.request(f'task/{id_}', params=params)

@post_filtering()
def list(self, init_org_id: int = None, init_user_id: int = None,
def list(self, initiating_org: int = None, initiating_user: int = None,
collaboration: int = None, image: str = None,
parent: int = None, run: int = None,
name: str = None, include_results: bool = False,
Expand All @@ -1579,9 +1579,9 @@ def list(self, init_org_id: int = None, init_user_id: int = None,
Filter by the name of the task. It will match with a
Like operator. I.e. E% will search for task names that
start with an 'E'.
init_org_id: int, optional
initiating_org: int, optional
Filter by initiating organization
init_user_id: int, optional
initiating_user: int, optional
Filter by initiating user
collaboration: int, optional
Filter by collaboration
Expand Down Expand Up @@ -1626,7 +1626,7 @@ def list(self, init_org_id: int = None, init_user_id: int = None,
# if the param is None, it will not be passed on to the
# request
params = {
'init_org_id': init_org_id, 'init_user_id': init_user_id,
'init_org_id': initiating_org, 'init_user_id': initiating_user,
'collaboration_id': collaboration,
'image': image, 'parent_id': parent, 'run_id': run,
'name': name, 'page': page, 'per_page': per_page,
Expand Down

0 comments on commit dd4696c

Please sign in to comment.