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

Support for wildcard filters #77

Open
skibbipl opened this issue Nov 7, 2017 · 2 comments
Open

Support for wildcard filters #77

skibbipl opened this issue Nov 7, 2017 · 2 comments

Comments

@skibbipl
Copy link

skibbipl commented Nov 7, 2017

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?

@jasonmcintosh
Copy link
Owner

Eventually would like to get a regex option :) There's already minimal filtering available, it's just not where I'd like it to be... will review this when I can.

@jasonmcintosh
Copy link
Owner

#22 btw for what I was originally thinking :) Also... please feel free to work on this and contribute ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants