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

Bug: Applying filters to tasks.list doesn't work #304

Open
svecile opened this issue Sep 12, 2024 · 4 comments
Open

Bug: Applying filters to tasks.list doesn't work #304

svecile opened this issue Sep 12, 2024 · 4 comments

Comments

@svecile
Copy link

svecile commented Sep 12, 2024

label-studio-sdk version: 1.0.5, label studio version: 1.13.1 (Docker deployment)

When i try to apply a filter it always returns all the tasks not just the one i'm filtering for and no error is received

filters = Filters.create(Filters.AND, [Filters.item(Column.inner_id, Operator.EQUAL, Type.Number, Filters.value(1))])
task = ls.tasks.list(project=project_id, query={"filters": filters})

Please let me know if you need more information.

@svecile svecile changed the title Bug: Webhook 'ANNOTATIONS_DELETED' returns incorrect information and applying filters to tasks.list doesn't work Bug: Applying filters to tasks.list doesn't work Sep 12, 2024
@MmAaXx500
Copy link

You need to supply a str for the query parameter. It should be query=json.dumps({"filters": filters}).

@amjadsaadeh
Copy link

Hello,

I've got the same problem, @MmAaXx500 comment made is possible to fix this on my side. Maybe some example in the Docs might be useful.

@ice6
Copy link

ice6 commented Nov 19, 2024

@MmAaXx500 thank you very much :)

@svecile
Copy link
Author

svecile commented Nov 28, 2024

@MmAaXx500 Thank you!

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

No branches or pull requests

4 participants