Skip to content

A Strange Error. #426

Answered by eugene-eeo
onurtvb asked this question in Q&A
Aug 26, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The error happens in the

result = inventory.search(...)

You're passing a boolean to inventory.search(...), but Table.search expects a Query object, or a callable instead.
Most likely, you wanted to do something like (Note the uppercased "Inventory"):

Inventory = Query()
result = inventory.search(Inventory.name == "common_circle")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@onurtvb
Comment options

Answer selected by onurtvb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants