Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.
This repository was archived by the owner on Apr 17, 2026. It is now read-only.

Negative tags is not working as expected #5

Description

@Alfa-Q

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions