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

Negative tags is not working as expected #5

Open
Alfa-Q opened this issue Nov 9, 2019 · 1 comment
Open

Negative tags is not working as expected #5

Alfa-Q opened this issue Nov 9, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Alfa-Q
Copy link
Owner

Alfa-Q commented Nov 9, 2019

When getting posts, the posts retrieved can contain some of the negative tags, when it is expected that the posts retrieved cannot contain any of the negative tags.

Example

api.get_posts(["a"], ["b", "c"]) will retrieve posts that can still contain one of those negative tags ("b" or "c"), but will never contain both ("b" and "c").

It would be nice for it to be more explicit or add functionality to dictate whether the tags provided are independent.

Possible Solution:

api.get_posts(["a"], [("b", "c")]
To get all posts that contain "a" but cannot contain BOTH tags "b" AND "c"

api.get_posts(["a"], [("a"), ("b")])
To get all posts that contain "a" but cannot contain a tag "b" OR "c"

Basically group tags using a tuple.

@Alfa-Q Alfa-Q self-assigned this Nov 9, 2019
@Alfa-Q Alfa-Q added the enhancement New feature or request label Nov 9, 2019
@Alfa-Q Alfa-Q added this to the v2.0.0 milestone Nov 9, 2019
@Alfa-Q Alfa-Q modified the milestones: v2.0.0, v2.1.0 May 26, 2023
@SolitarySpiral
Copy link

resolution with negative tags is here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants