Skip to content

Commit

Permalink
Merge pull request #54 from Multi-Agent-io/development
Browse files Browse the repository at this point in the history
0.11.3 - TopicChanged and NewDevice address filter
  • Loading branch information
PaTara43 authored May 8, 2022
2 parents 2571ec6 + 29cc176 commit 06e94d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "robonomics-interface"
version = "0.11.2"
version = "0.11.3"
description = "Robonomics wrapper over https://github.com/polkascan/py-substrate-interface created to facilitate programming with Robonomics"
authors = ["Pavel Tarasov <p040399@outlook.com>"]
license = "Apache-2.0"
Expand Down
4 changes: 3 additions & 1 deletion robonomicsinterface/RobonomicsInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,9 @@ def _event_callback(self, index_obj: tp.Any, update_nr: int, subscription_id: in
if self._target_address is None:
self._callback(events["event"]["attributes"]) # All events
elif (
events["event"]["attributes"][0 if self._event == SubEvent.NewRecord else 1]
events["event"]["attributes"][
0 if self._event in [SubEvent.NewRecord, SubEvent.TopicChanged, SubEvent.NewDevices] else 1
]
in self._target_address
):
self._callback(events["event"]["attributes"]) # address-targeted
Expand Down

0 comments on commit 06e94d8

Please sign in to comment.