Skip to content

Commit 4d36ba1

Browse files
committed
pass params through API list() method
1 parent ea4f0b2 commit 4d36ba1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# PyBanyan Change History
22

3+
## 0.18.3
4+
* pass params through API list() method
5+
36
## 0.18.2
47
* trapped errors in progress callbacks
58

banyan/api/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ def __init__(self, client):
2525
self._by_name: Dict[str, Resource] = dict()
2626
self._by_id: Dict[str, Resource] = dict()
2727

28-
def list(self) -> list:
28+
def list(self, params: Dict[str, Any] = None) -> list:
2929
list_func = self._client.api_request
3030
try:
3131
if self.Meta.supports_paging:
3232
list_func = self._client.paged_request
3333
except AttributeError:
3434
pass
35-
response_json = list(list_func('GET', self.Meta.list_uri))
35+
response_json = list(list_func('GET', self.Meta.list_uri, params=params))
3636
data: List[Resource] = self.Meta.info_class.Schema().load(response_json, many=True)
3737
self._build_cache(data)
3838
return data

banyan/core/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
from cement.utils.version import get_version as cement_get_version
33

4-
VERSION = (0, 18, 2, 'final', 1)
4+
VERSION = (0, 18, 3, 'final', 1)
55

66

77
def get_version(version=VERSION):

0 commit comments

Comments
 (0)