Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fixed in routing.match() #17

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading