Skip to content
This repository was archived by the owner on Mar 15, 2021. It is now read-only.

Commit

Permalink
fixing subscription filter
Browse files Browse the repository at this point in the history
  • Loading branch information
codyde committed Sep 12, 2019
1 parent 694a0b7 commit c7ec3c0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions caspyr/extensibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,9 @@ def list(session):
:return: A list of subscriptions.
:rtype: list
"""
uri ='/event-broker/api/subscriptions/'
uri =f"/event-broker/api/subscriptions?$filter=(type ne 'SUBSCRIBABLE')"
j = session._request(f'{session.baseurl}{uri}')
subs = []
for i in j['content']:
if i['type'] == 'RUNNABLE':
print(i['name'])
subs.append(i)
return subs
return j['content']

@staticmethod
def describe(session, id):
Expand Down

0 comments on commit c7ec3c0

Please sign in to comment.