Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 483bd4f

Browse files
committed
Urlencode event names list
1 parent fb36369 commit 483bd4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

orbitdbapi/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def unload(self):
174174
return self.__client._call('delete', endpoint)
175175

176176
def events(self, eventname):
177-
endpoint = '/'.join(['db', self.__id_safe,'events', eventname])
177+
endpoint = '/'.join(['db', self.__id_safe, 'events', urlquote(eventname, safe='')])
178178
#return SSEClient('{}/{}'.format(self.__client.base_url, endpoint), session=self.__client.session)
179179
req = self.__client._call_raw('get', endpoint, stream=True)
180180
return SSEClient(req).events()

orbitdbapi/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = '0.2.2-dev0'
1+
version = '0.2.2-dev1'
22
version_info = tuple([int(d) for d in version.split("-")[0].split(".")])

0 commit comments

Comments
 (0)