Skip to content

Commit 61bf558

Browse files
committed
Reverted back app_id filter by query for list resources
1 parent 1ea38ee commit 61bf558

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

bugout/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,12 @@ def get_resource(
366366
def list_resources(
367367
self,
368368
token: Union[str, uuid.UUID],
369-
application_id: Optional[Union[str, uuid.UUID]] = None,
370369
params: Optional[Dict[str, Any]] = None,
371370
timeout: float = REQUESTS_TIMEOUT,
372371
) -> data.BugoutResources:
373372
self.resource.timeout = timeout
374373
return self.resource.list_resources(
375-
token=token, application_id=application_id, params=params
374+
token=token, params=params
376375
)
377376

378377
def delete_resource(

bugout/resource.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,12 @@ def get_resource(
6464
def list_resources(
6565
self,
6666
token: Union[str, uuid.UUID],
67-
application_id: Optional[Union[str, uuid.UUID]] = None,
6867
params: Optional[Dict[str, Any]] = None,
6968
) -> BugoutResources:
7069
resources_path = "resources"
7170
headers = {
7271
"Authorization": f"Bearer {token}",
73-
}
74-
if application_id is not None:
75-
params["application_id"] = application_id
72+
})
7673
result = self._call(
7774
method=Method.get, path=resources_path, params=params, headers=headers
7875
)

0 commit comments

Comments
 (0)