Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Support for wildcard filters #77

@skibbipl

Description

@skibbipl

Hello,
I need to filter several queues starting with specific string so I modified your code a bit:
Removed this line:

check = [(x, y) for x, y in queue.items() if x in _filter]

And replaced this line:
shared_items = set(_filter.items()).intersection(check)

with:

shared_items = [(x, y) for x, y in queue.items() if x == u'name' and y.startswith(_filter['name'])]

And the same goes for lines:

check = [(x, y) for x, y in shovel.items() if x in _filter]
shared_items = set(_filter.items()).intersection(check)

Perhaps you could consider adding possibility to use wildcard filters for queues/shovels?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions