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

DatastoreInputReader filter item in list #97

Open
RubenMattan opened this issue Jul 5, 2016 · 1 comment
Open

DatastoreInputReader filter item in list #97

RubenMattan opened this issue Jul 5, 2016 · 1 comment

Comments

@RubenMattan
Copy link

When you want to check if a list contains an item you normally check by doing .filter("list =", item) but DatastoreInputReader validation is expecting a list instead of an item.

Should be
mapper_params = { "filters": [("list", "=", item)] }
instead of
mapper_params = { "filters": [("list", "=", [item])] }

Validate in source code

@eko-wibowo
Copy link

@RubenMattan I opened a pull request for it #94 this seems only affect db.Model as ndb is fine.

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

2 participants