Skip to content

Commit

Permalink
small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmatthias committed Apr 22, 2024
1 parent 629f815 commit e35daf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "amqpstorm-flask"
version = "0.4.0"
version = "0.4.1"
description = "amqpstorm library for Flask"
readme = "README.md"
authors = [{ name = "Inuits", email = "[email protected]" }]
Expand Down
5 changes: 1 addition & 4 deletions src/amqpstorm_flask/RabbitMQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,7 @@ def decorator(f):
queue = f.__name__.replace("_", getenv("MQ_DELIMITER", ".")) if queue_name is None else queue_name

enabled_queues = None if getenv("MQ_QUEUES") is None else getenv("MQ_QUEUES").split(",")
if enabled_queues is None:
all_queues_enabled = True
else:
all_queues_enabled = False
all_queues_enabled = enabled_queues is None

if queue in enabled_queues or all_queues_enabled:
@wraps(f)
Expand Down

0 comments on commit e35daf6

Please sign in to comment.