Skip to content

Commit

Permalink
Merge pull request #17 from certego/bug_fix
Browse files Browse the repository at this point in the history
bug fixed in routing.match()
  • Loading branch information
ManofWax committed Feb 20, 2024
2 parents 59d4709 + fb96fda commit 6277cee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## 2.2.x
### 2.2.1
#### Bugfix
* Fixed bug in *match()* method of *Routing* class
### 2.2.0
#### Features
* Added *to_dict()* method to Results class
Expand Down
2 changes: 1 addition & 1 deletion routingfilter/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def match(self, event: dict, type_: str = "streams", tag_field_name: str = "tags
# check stream
if type_ == "streams":
stream = self.streams
elif type_ == "customer":
elif type_ == "customers":
stream = self.customer
else:
self.logger.error(f"Error during matching. Invalid Stream: {type_}")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="routingfilter",
version="2.2.0",
version="2.2.1",
packages=find_packages(include=["routingfilter", "routingfilter.*"]),
include_package_data=True,
install_requires=["IPy~=1.1", "macaddress~=2.0.2"],
Expand Down

0 comments on commit 6277cee

Please sign in to comment.